geo rocks and interactables display
This commit is contained in:
parent
d3055983de
commit
d4969e7830
5 changed files with 64 additions and 5 deletions
|
|
@ -861,6 +861,9 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
case "jinnEggsSold":
|
||||
case "xunFlowerBrokeTimes":
|
||||
textPrefix += ": " + Math.abs(playerData[i]);
|
||||
|
||||
dataObject[i].amount = Math.abs(playerData[i]);
|
||||
|
||||
(i === "geoPool" && playerData[i] > 0) ? CurrentDataBlank(section, i): CurrentDataTrue(section, i);
|
||||
|
||||
if (i === "jinnEggsSold") {
|
||||
|
|
@ -880,6 +883,10 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
notActivated = CountGeoRocks(discoveredTotal, "unbroken");
|
||||
activated = CountGeoRocks(discoveredTotal, "broken");
|
||||
|
||||
dataObject[i].discoveredTotal = discoveredTotal;
|
||||
dataObject[i].notActivated = notActivated;
|
||||
dataObject[i].activated = activated;
|
||||
|
||||
textPrefix += `: ${notActivated} | ${activated} | ${discoveredTotal}`;
|
||||
CurrentDataTrue(section, i);
|
||||
break;
|
||||
|
|
@ -890,6 +897,10 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
notActivated = CountItems(discoveredTotal, "notActivated");
|
||||
activated = CountItems(discoveredTotal, "active");
|
||||
|
||||
dataObject[i].discoveredTotal = discoveredTotal;
|
||||
dataObject[i].notActivated = notActivated;
|
||||
dataObject[i].activated = activated;
|
||||
|
||||
textPrefix += `: ${notActivated} | ${activated} | ${discoveredTotal}`;
|
||||
CurrentDataTrue(section, i);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1605,14 +1605,22 @@ const HK = {
|
|||
wiki: "Delicate_Flower"
|
||||
},
|
||||
geoRocks: {
|
||||
id: "geoRocks",
|
||||
name: "Geo Rocks",
|
||||
spoiler: "Unbroken | Broken | Discovered",
|
||||
wiki: "Geo#How_to_Acquire"
|
||||
wiki: "Geo#How_to_Acquire",
|
||||
notActivated: 0,
|
||||
activated: 0,
|
||||
discoveredTotal: 0
|
||||
},
|
||||
itemsDiscovered: {
|
||||
id: "itemsDiscovered",
|
||||
name: "Interactables",
|
||||
spoiler: "Not A. | Activated | Discovered",
|
||||
wiki: "Category:Exploration_(Hollow_Knight)"
|
||||
wiki: "Category:Exploration_(Hollow_Knight)",
|
||||
notActivated: 0,
|
||||
activated: 0,
|
||||
discoveredTotal: 0
|
||||
},
|
||||
notchShroomOgres: {
|
||||
name: "Charm Notch #1",
|
||||
|
|
|
|||
|
|
@ -445,6 +445,20 @@ function SingleEntryFill(section, entry) {
|
|||
if (entry.hasOwnProperty("amountTotal")) {
|
||||
textPrefix += ` / ${entry.amountTotal}`;
|
||||
}
|
||||
|
||||
if (entry.hasOwnProperty("id")) {
|
||||
|
||||
switch (entry.id) {
|
||||
|
||||
case "geoRocks":
|
||||
case "itemsDiscovered":
|
||||
textPrefix += `: ${entry.notActivated} | ${entry.activated} | ${entry.discoveredTotal}`;
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
if (textSuffix.length && textPrefix.length) textSuffix = `— ${textSuffix}`;
|
||||
if (textPrefix.includes("<del>")) textSuffix = `<del>${textSuffix}</del>`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue