handling of spoiler revealing for amounts
This commit is contained in:
parent
d0a953ab01
commit
3d5b05dfdd
4 changed files with 70 additions and 135 deletions
|
|
@ -1293,6 +1293,18 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
break;
|
||||
|
||||
case "geoPool":
|
||||
amount = Math.abs(playerData[i]);
|
||||
|
||||
dataObject[i].amount = amount;
|
||||
|
||||
if (amount > 0) {
|
||||
SetIconPartial(section, i);
|
||||
} else {
|
||||
SetIcon(section, i, "revealed");
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "rancidEggs":
|
||||
case "jinnEggsSold":
|
||||
case "xunFlowerBrokeTimes":
|
||||
|
|
@ -1306,8 +1318,8 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
|
||||
dataObject[i].amount = amount;
|
||||
|
||||
if (amount > 0 && i === "geoPool") {
|
||||
SetIconPartial(section, i);
|
||||
if (amount > 0) {
|
||||
SetIcon(section, i, "revealed");
|
||||
} else {
|
||||
SetIconNone(section, i);
|
||||
}
|
||||
|
|
@ -1318,6 +1330,8 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
|
||||
SetIconNone(section, i);
|
||||
dataObject[i].disabled = true;
|
||||
} else {
|
||||
SetIcon(section, i, "revealed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1348,7 +1362,11 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
|
||||
dataObject[i].amount = amount;
|
||||
|
||||
SetIconNone(section, i);
|
||||
if (amount > 0) {
|
||||
SetIcon(section, i, "revealed");
|
||||
} else {
|
||||
SetIconNone(section, i);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
|
@ -1363,7 +1381,11 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
|
||||
dataObject[i].amount = amount;
|
||||
|
||||
SetIconNone(section, i);
|
||||
if (amount > 0) {
|
||||
SetIcon(section, i, "revealed");
|
||||
} else {
|
||||
SetIconNone(section, i);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
|
@ -1397,23 +1419,6 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
|
||||
break;
|
||||
|
||||
/* case "geoRocks":
|
||||
discoveredTotal = sceneData.geoRocks.length;
|
||||
|
||||
notActivated = CountGeoRocks(discoveredTotal, "unbroken");
|
||||
activated = CountGeoRocks(discoveredTotal, "broken");
|
||||
|
||||
dataObject[i].discoveredTotal = discoveredTotal;
|
||||
dataObject[i].notActivated = notActivated;
|
||||
dataObject[i].activated = activated;
|
||||
|
||||
if (activated >= dataObject[i].max) {
|
||||
SetIconGreen(section, i);
|
||||
} else {
|
||||
SetIconNone(section, i);
|
||||
}
|
||||
break;
|
||||
*/
|
||||
case "itemsDiscovered":
|
||||
discoveredTotal = sceneData.persistentBoolItems.length;
|
||||
|
||||
|
|
@ -1425,7 +1430,7 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
dataObject[i].activated = activated;
|
||||
|
||||
/* textPrefix += `: ${notActivated} | ${activated} | ${discoveredTotal}`; */
|
||||
SetIconNone(section, i);
|
||||
SetIcon(section, i, "revealed");
|
||||
break;
|
||||
|
||||
case "shopkeeperKey":
|
||||
|
|
|
|||
|
|
@ -5941,51 +5941,6 @@ const HK = {
|
|||
maxDefault: 21,
|
||||
wiki: "Nail#Nail_Upgrades"
|
||||
},
|
||||
/*
|
||||
whisperingRoots: {
|
||||
name: "Whispering Roots Completed",
|
||||
spoiler: "Dream Nail (15 Roots total)",
|
||||
max: 15,
|
||||
maxDefault: 15,
|
||||
wiki: "Whispering_Root"
|
||||
},
|
||||
relicsWandererJournal: {
|
||||
name: "Relic #1 Found Total",
|
||||
nameHeld: "trinket1",
|
||||
nameSold: "soldTrinket1",
|
||||
spoiler: "Wanderer's Journal (14 Journals total)",
|
||||
max: 14,
|
||||
maxDefault: 14,
|
||||
wiki: "Wanderer's_Journal"
|
||||
},
|
||||
relicsHallownestSeal: {
|
||||
name: "Relic #2 Found Total",
|
||||
nameHeld: "trinket2",
|
||||
nameSold: "soldTrinket2",
|
||||
spoiler: "Hallownest Seal (17 Seals total)",
|
||||
max: 17,
|
||||
maxDefault: 17,
|
||||
wiki: "Hallownest_Seal"
|
||||
},
|
||||
relicsKingsIdol: {
|
||||
name: "Relic #3 Found Total",
|
||||
nameHeld: "trinket3",
|
||||
nameSold: "soldTrinket3",
|
||||
spoiler: "King's Idol (8 Idols total)",
|
||||
max: 8,
|
||||
maxDefault: 8,
|
||||
wiki: "King's_Idol"
|
||||
},
|
||||
relicsArcaneEgg: {
|
||||
name: "Relic #4 Found Total",
|
||||
nameHeld: "trinket4",
|
||||
nameSold: "soldTrinket4",
|
||||
spoiler: "Arcane Egg (4 Eggs max, 1 missable)",
|
||||
max: 3,
|
||||
maxDefault: 3,
|
||||
wiki: "Arcane_Egg"
|
||||
},
|
||||
*/
|
||||
// not ghostCoins
|
||||
geoPool: {
|
||||
name: "Shade Geo",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue