additional things, Spoiler Mode change

This commit is contained in:
ReznoRMichael 2020-09-25 15:34:38 +02:00
parent d937a21d55
commit 13e1d7aa85
2 changed files with 34 additions and 5 deletions

View file

@ -370,8 +370,22 @@ const HK_ESSENTIAL = {
const HK_ADDITIONAL = { const HK_ADDITIONAL = {
nailDamage: ["Nail Damage", "Nailsmith upgrades", 21], nailDamage: ["Nail Damage", "Nailsmith upgrades", 21],
charmSlots: ["Charm Notches", "out of 11 total", 11],
dreamOrbsSpent: ["Essence spent", "on Dream Gate travelling"],
stationsOpened: ["Stag Stations opened", "Hallownest", 9],
relicsWandererJournal: ["Relic #1 found total", "Wanderer's Journal (out of 14)", 14, "trinket1", "soldTrinket1"],
relicsHallownestSeal: ["Relic #2 found total", "Hallownest Seal (out of 17)", 17, "trinket2", "soldTrinket2"],
relicsKingsIdol: ["Relic #3 found total", "King's Idol (out of 8)", 8, "trinket3", "soldTrinket3"],
relicsArcaneEgg: ["Relic #4 found total", "Arcane Egg (out of 4)", 4, "trinket4", "soldTrinket4"],
rancidEggs: ["Rancid Eggs", "Hallownest, Sly, Tuk"],
xunFlowerBrokeTimes: ["Delicate Flowers broken", "Resting Grounds: Grey Mourner"],
hasDreamGate: ["Dream Gate", "Seer: 900 Essence"], hasDreamGate: ["Dream Gate", "Seer: 900 Essence"],
dreamOrbsSpent: ["Essence spent", "Dream Nail", 1], gotShadeCharm: ["Void Heart", "Kingsoul + Birthplace"],
fragileHealth_unbreakable: ["Unbreakable Heart", "Divine: 12000 Geo"],
fragileGreed_unbreakable: ["Unbreakable Greed", "Divine: 9000 Geo"],
fragileStrength_unbreakable: ["Unbreakable Strength", "Divine: 15000 Geo"],
zoteDead: ["Optimal Zote", "Greenpath + Deepnest"],
nailsmithSpared: ["Optimal Nailsmith", "City of Tears"],
}; };
/** /**
@ -898,10 +912,17 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData) {
case "dreamOrbs": case "dreamOrbs":
case "fountainGeo": case "fountainGeo":
case "nailDamage": case "nailDamage":
case "dreamOrbsSpent": case "stationsOpened":
textPrefix += ": " + Math.abs(playerData[i]); case "charmSlots":
textPrefix += ": " + playerData[i];
(playerData[i] >= dataObject[i][2]) ? CurrentDataTrue(): CurrentDataInfo(); (playerData[i] >= dataObject[i][2]) ? CurrentDataTrue(): CurrentDataInfo();
break; break;
case "dreamOrbsSpent":
case "rancidEggs":
case "xunFlowerBrokeTimes":
CurrentDataInfo();
textPrefix += ": " + Math.abs(playerData[i]);
break;
case "shopkeeperKey": case "shopkeeperKey":
(playerData.hasSlykey === true || playerData.gaveSlykey === true) ? CurrentDataTrue(): CurrentDataFalse(); (playerData.hasSlykey === true || playerData.gaveSlykey === true) ? CurrentDataTrue(): CurrentDataFalse();
break; break;
@ -935,6 +956,14 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData) {
case "paleOreColosseum": // #6 case "paleOreColosseum": // #6
(FindWorldItem("Room_Colosseum_Silver", "Shiny Item")) ? CurrentDataTrue(): CurrentDataFalse(); (FindWorldItem("Room_Colosseum_Silver", "Shiny Item")) ? CurrentDataTrue(): CurrentDataFalse();
break; break;
case "relicsWandererJournal":
case "relicsHallownestSeal":
case "relicsKingsIdol":
case "relicsArcaneEgg":
let total = playerData[dataObject[i][3]] + playerData[dataObject[i][4]];
(total >= dataObject[i][2]) ? CurrentDataTrue(): CurrentDataInfo();
textPrefix += ": " + total;
break;
default: default:
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse(); (playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
} }

View file

@ -63,7 +63,7 @@
</label> </label>
<label for="checkbox-locations" class="checkbox-label" title="Check to show every item's locations and costs. Hidden by default."> <label for="checkbox-locations" class="checkbox-label" title="Check to show every item's locations and costs. Hidden by default.">
<input type="checkbox" name="checkboxes" id="checkbox-locations" value="locations-off" onclick="CheckboxLocationsToggle();"> <input type="checkbox" name="checkboxes" id="checkbox-locations" value="locations-off" onclick="CheckboxLocationsToggle();">
<span class="checkmark"></span>Locations <span class="checkmark"></span>Spoiler Mode
</label> </label>
</div> </div>