diff options
author | nea <romangraef@gmail.com> | 2022-10-30 01:45:48 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-10-30 01:45:48 +0200 |
commit | db44c8f2956101a868e237dedbc9b96bec03ee88 (patch) | |
tree | 9ae8a2c57e13747585b7869ac4cd8197c3f11532 | |
parent | 5ed0cd570b67d121d17c6fc7682e03ef66d4b7a7 (diff) | |
download | skyblock.bingo-db44c8f2956101a868e237dedbc9b96bec03ee88.tar.gz skyblock.bingo-db44c8f2956101a868e237dedbc9b96bec03ee88.tar.bz2 skyblock.bingo-db44c8f2956101a868e237dedbc9b96bec03ee88.zip |
This gets rid of colorful community goals, but at least they are
updated.
-rw-r--r-- | index.html | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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);
|