geo rocks and interactables display
This commit is contained in:
parent
d3055983de
commit
d4969e7830
5 changed files with 64 additions and 5 deletions
30
build/app.js
30
build/app.js
|
|
@ -766,6 +766,7 @@ 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") {
|
||||
|
|
@ -783,6 +784,9 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
discoveredTotal = sceneData.geoRocks.length;
|
||||
notActivated = CountGeoRocks(discoveredTotal, "unbroken");
|
||||
activated = CountGeoRocks(discoveredTotal, "broken");
|
||||
dataObject[i].discoveredTotal = discoveredTotal;
|
||||
dataObject[i].notActivated = notActivated;
|
||||
dataObject[i].activated = activated;
|
||||
textPrefix += ": ".concat(notActivated, " | ").concat(activated, " | ").concat(discoveredTotal);
|
||||
CurrentDataTrue(section, i);
|
||||
break;
|
||||
|
|
@ -791,6 +795,9 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
discoveredTotal = sceneData.persistentBoolItems.length;
|
||||
notActivated = CountItems(discoveredTotal, "notActivated");
|
||||
activated = CountItems(discoveredTotal, "active");
|
||||
dataObject[i].discoveredTotal = discoveredTotal;
|
||||
dataObject[i].notActivated = notActivated;
|
||||
dataObject[i].activated = activated;
|
||||
textPrefix += ": ".concat(notActivated, " | ").concat(activated, " | ").concat(discoveredTotal);
|
||||
CurrentDataTrue(section, i);
|
||||
break;
|
||||
|
|
@ -4117,14 +4124,22 @@ var 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",
|
||||
|
|
@ -5213,6 +5228,17 @@ function SingleEntryFill(section, entry) {
|
|||
textPrefix += " / ".concat(entry.amountTotal);
|
||||
}
|
||||
|
||||
if (entry.hasOwnProperty("id")) {
|
||||
switch (entry.id) {
|
||||
case "geoRocks":
|
||||
case "itemsDiscovered":
|
||||
textPrefix += ": ".concat(entry.notActivated, " | ").concat(entry.activated, " | ").concat(entry.discoveredTotal);
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
if (textSuffix.length && textPrefix.length) textSuffix = "\u2014 ".concat(textSuffix);
|
||||
if (textPrefix.includes("<del>")) textSuffix = "<del>".concat(textSuffix, "</del>");
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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…
Reference in a new issue