Skip to content

Commit

Permalink
BOSSES: adjust aquaman respawns and add debug facility
Browse files Browse the repository at this point in the history
It will be easier for me later to adjust, but according to the (too few)
reports it nearly match with a 22 hours respawn.
  • Loading branch information
mascaldotfr committed Jun 11, 2024
1 parent ea843bd commit 9c0b137
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion js/bosses.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {__api__base} from "./api_url.js"; // XXX AQUAMAN
// respawn timestamps. At least yearly, since the get_next_respawns() loop
// will run ~ 80 times/boss after all that time.
// Last checked: Eve: 2024-05-11, Daen: 2024-05-11, TK: 2024-05-11, Server: 2024-05-11 (+37m)
// XXX AQUAMAN TBD
const first_respawns = { "thorkul": 1715403300,
"evendim": 1715462390,
"daen": 1715156280,
Expand All @@ -36,7 +37,7 @@ function get_next_respawns(boss) {
if (boss == "server")
respawn_time = 168 * 3600; // 1 week
else if (boss == "aquaman")
respawn_time = 23 * 3600;
respawn_time = 22 * 3600;
else
respawn_time = 109 * 3600; // 109 hours
tried_respawn += respawn_time;
Expand All @@ -48,6 +49,12 @@ function get_next_respawns(boss) {
previous_respawns[boss] = next_respawns[boss][0] - respawn_time;
console.log(boss, "previous respawn (to put in js file) is",
previous_respawns[boss]);
if (boss != "aquaman")
return;
for (let i of [2, 3, 4]) {
let prevprevprev = new Date((previous_respawns["aquaman"] - respawn_time * i) * 1000);
console.log("[DEBUG]", "prevprevprev respawn: ", prevprevprev);
}
}

function display_next_respawn(boss) {
Expand Down
2 changes: 1 addition & 1 deletion js/menu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c0b137

Please sign in to comment.