aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-10-30 01:45:48 +0200
committernea <romangraef@gmail.com>2022-10-30 01:45:48 +0200
commitdb44c8f2956101a868e237dedbc9b96bec03ee88 (patch)
tree9ae8a2c57e13747585b7869ac4cd8197c3f11532 /index.html
parent5ed0cd570b67d121d17c6fc7682e03ef66d4b7a7 (diff)
downloadskyblock.bingo-db44c8f2956101a868e237dedbc9b96bec03ee88.tar.gz
skyblock.bingo-db44c8f2956101a868e237dedbc9b96bec03ee88.tar.bz2
skyblock.bingo-db44c8f2956101a868e237dedbc9b96bec03ee88.zip
Use guide api endpoint for community goalsHEADmain
This gets rid of colorful community goals, but at least they are updated.
Diffstat (limited to 'index.html')
-rw-r--r--index.html10
1 files changed, 1 insertions, 9 deletions
diff --git a/index.html b/index.html
index c99c328..d09b8f2 100644
--- a/index.html
+++ b/index.html
@@ -651,9 +651,6 @@
guide = data;
})
- //TODO: Change this when new bingo goals come out
- let community_goals_lore = {"0":"§7Gain §51M Heart of the Mountain experience.","6":"§7Loot §e50k §7drops with a chance of §e1% §7or lower§7.","12":"§7Defeat §cBonzo §a1,000 §7times§7.","18":"§7Kill §a2,000 Tarantula Broodfather §7of tier 2 or higher§7.","24":"§7Gain §b150M Taming §7experience§7."};
-
function displayGoal(num) {
document.getElementById('guide').innerHTML = '';
@@ -675,12 +672,7 @@
document.getElementById('goal-name').style.color = '#ECB22E'; // Community
}
document.getElementById('goal-name').innerHTML = goals[num].name;
- if (goals[num].lore != undefined) {
- var colorfulString = goals[num].lore.substring(0, goals[num].lore.length-1).replaceColorCodes();
-
- } else {
- var colorfulString = community_goals_lore[num].substring(0, community_goals_lore[num].length-1).replaceColorCodes();
- }
+ var colorfulString = (goals[num].lore || guide[num].lore).slice(0, -1).replaceColorCodes();
var lore = document.createElement('p');
lore.append(colorfulString);
document.getElementById('guide').append(lore);