Skip to content

Commit

Permalink
BOSSES: remove aquaman
Browse files Browse the repository at this point in the history
Due to lack of reports on users' side and NGE's unwillingness to give
respawn times it's time to phase out the experiment due to the
unaccuracy of respawn times.

Closes #19
  • Loading branch information
mascaldotfr committed Jul 14, 2024
1 parent 0c024d9 commit e44cd36
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 64 deletions.
9 changes: 0 additions & 9 deletions bosses.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ <h1 id="title"></h1>
<div id="boss-server-respawn"></div>
</div>
</div>
<div id="boss-aquaman" class="card">
<img src="data/bosses/aquaman.png" alt="aquaman" title="Aquaman" loading="lazy"/>
<div class="boss-respawn">
<p id="boss-aquaman-lastspawn"></p>
<p><span id="boss-aquaman-countdown" class="red bold"></span></p>
<div id="boss-aquaman-respawn"></div>
<div id="boss-aquaman-ask" class="card"></div>
</div>
</div>
</div>
</div>
</div>
Expand Down
11 changes: 2 additions & 9 deletions css/bosses.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#boss-daen, #boss-evendim, #boss-thorkul, #boss-server, #boss-aquaman {
#boss-daen, #boss-evendim, #boss-thorkul, #boss-server {
display: flex;
flex-wrap: wrap;
margin-bottom: 1em;
Expand Down Expand Up @@ -28,11 +28,4 @@
margin-left: initial;
}
}
/* XXX AQUAMAN */
button[id^="aquaman_"] {
min-width: 8em;
}
#boss-aquaman-ask {
background: rgba(0, 0, 0, .2);
box-shadow: 0 0 .5em rgba(255, 128, 128, .25);
}

Binary file removed data/bosses/aquaman.png
Binary file not shown.
21 changes: 0 additions & 21 deletions data/i18n_db.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,6 @@ export const __i18n__ = {
"es": "debería aparecer muy pronto!",
"de": "sollte sehr bald erscheinen!"
},
"I've just seen Aquaman in...":
{
"comment": "XXX AQUAMAN",
"fr": "Je viens de voir Aquaman sur ...",
"es": "Acabo de ver Aquaman en...",
"de": "Ich habe gerade Aquaman gesehen in..."
},
"All times are estimates for now, help me improve it!":
{
"comment": "XXX AQUAMAN",
"fr": "Toutes les heures sont des estimations pour l'instant, aidez-moi à les améliorer !",
"es": "Todos los tiempos son estimados por ahora, ¡ayúdame a mejorarlo!",
"de": "Alle Zeiten sind derzeit Schätzungen. Helfen Sie mir, sie zu verbessern!"
},
"Thank you for telling me you've seen Aquaman in %s!":
{
"comment": "XXX AQUAMAN",
"fr": "Merci de m'avoir indiqué que tu as vu Aquaman sur %s !",
"es": "¡Gracias por hacerme saber que viste Aquaman en %s!",
"de": "Vielen Dank, dass Sie mich wissen lassen, dass Sie Aquaman auf %s gesehen haben!"
},
"d":
{
"comment": "short for days",
Expand Down
24 changes: 0 additions & 24 deletions js/bosses.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@ import {_} from "./libs/i18n.js";
import {insert_notification_link, mynotify} from "./libs/notify.js";
import {generate_calendar} from "./libs/calendar.js";
import {timestamp_now, timestamp_ago} from "./wztools/time.js";
import {__api__base} from "./api_url.js"; // XXX AQUAMAN

// The last respawn timestamp in UTC time
// You can update it by looking at your browser console and getting the last
// 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,
"aquaman": 1720794600,
"server": 1715162400 + 37 * 60 };
let next_respawns = { "evendim": [], "daen": [], "thorkul": [], "server": [] };
let previous_respawns = first_respawns;
Expand All @@ -36,8 +33,6 @@ function get_next_respawns(boss) {
while (true) {
if (boss == "server")
respawn_time = 168 * 3600; // 1 week
else if (boss == "aquaman")
respawn_time = 23.5 * 3600;
else
respawn_time = 109 * 3600; // 109 hours
tried_respawn += respawn_time;
Expand All @@ -49,12 +44,6 @@ 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 [...Array(50).keys()]) {
let prevprevprev = new Date((previous_respawns["aquaman"] - respawn_time * i) * 1000);
console.log("[DEBUG]", "prevprevprev respawn: ", prevprevprev);
}
}

function display_next_respawn(boss) {
Expand Down Expand Up @@ -88,7 +77,6 @@ function refresh_display() {
for (let boss in first_respawns) {
$(`#boss-${boss}-lastspawn`).empty();
$(`#boss-${boss}-respawn`).empty();
$("#boss-aquaman-ask").empty(); // XXX AQUAMAN
next_respawns[boss] = [];
get_next_respawns(boss);
display_next_respawn(boss);
Expand All @@ -104,18 +92,6 @@ function refresh_display() {
$(`#boss-${bosses_ordered[boss]}`).appendTo("#boss-list");
$(`#boss-${bosses_ordered[boss]}`).show();
}
// XXX AQUAMAN
$("#boss-aquaman-ask").append(`
<p class="faded italic">${_("All times are estimates for now, help me improve it!")}</p>
<p><b class="red"> ${_("I've just seen Aquaman in...")}</b></p>`);
for (let realm of ["Alsius", "Ignis", "Syrtis"]) {
$("#boss-aquaman-ask").append(`<p><button id="aquaman_${realm}">${realm}</button></p>`);
$(`#aquaman_${realm}`).on("click", (event) => {
let realm = event.target.innerText;
let dummy = $().get(__api__base + "/aquaman/" + realm);
window.alert(_("Thank you for telling me you've seen Aquaman in %s!", realm));
});
}
}

$(document).ready(function() {
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 e44cd36

Please sign in to comment.