backwards compatibility and zote off detection
This commit is contained in:
parent
11a125010d
commit
a31bbeccac
3 changed files with 80 additions and 31 deletions
22
build/app.js
22
build/app.js
|
|
@ -1843,9 +1843,31 @@ function CheckHallOfGods(db, playerData) {
|
|||
|
||||
for (var entry in entries) {
|
||||
id = entries[entry].id;
|
||||
/* Backwards compatibility, disable and skip to next when not found */
|
||||
|
||||
if (!playerData.hasOwnProperty("statueState".concat(id))) {
|
||||
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconNone)(section, entry);
|
||||
entries[entry].disabled = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
check = entries[entry].check;
|
||||
isUnlocked = playerData["statueState".concat(id)].isUnlocked;
|
||||
|
||||
switch (entry) {
|
||||
case "GreyPrinceUnlocked":
|
||||
case "GreyPrinceAttuned":
|
||||
case "GreyPrinceAscended":
|
||||
case "GreyPrinceRadiant":
|
||||
/* When Zote OFF, disable entry and skip to next entry */
|
||||
if (playerData.zoteRescuedBuzzer === false && playerData.hasWalljump === true) {
|
||||
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconNone)(section, entry);
|
||||
entries[entry].disabled = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (playerData["statueState".concat(id)][check] === true) {
|
||||
switch (check) {
|
||||
case "isUnlocked":
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -493,7 +493,7 @@ function CheckExtendedCompletion(db) {
|
|||
}
|
||||
}
|
||||
|
||||
switch(entries[entry].icon) {
|
||||
switch (entries[entry].icon) {
|
||||
|
||||
case "red":
|
||||
case "none":
|
||||
|
|
@ -1150,11 +1150,11 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
/* when Grimm Troupe is banished, max Journal entries will be 1 or 2 less */
|
||||
if (playerData.hasOwnProperty("destroyedNightmareLantern") && playerData.destroyedNightmareLantern === true) {
|
||||
|
||||
dataObject[i].max --; // Subtract Nightmare King from max
|
||||
dataObject[i].max--; // Subtract Nightmare King from max
|
||||
|
||||
/* if the player didn't defeat any Grimmkin Nightmare before banishing, subtract it from max */
|
||||
if (playerData.killedFlameBearerLarge === false) {
|
||||
dataObject[i].max --; // Subtract Grimmkin Nightmare from max
|
||||
dataObject[i].max--; // Subtract Grimmkin Nightmare from max
|
||||
dataObject[i].spoiler = `${dataObject[i].spoilerDefault} (${dataObject[i].max} max)`; /* Change spoiler for less confusion */
|
||||
}
|
||||
}
|
||||
|
|
@ -1935,8 +1935,8 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
|||
|
||||
/* Void Idol backwards compatibility */
|
||||
if (entry === "VoidIdol_1") {
|
||||
if (playerData.killedVoidIdol_1 === false
|
||||
&& (playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) {
|
||||
if (playerData.killedVoidIdol_1 === false &&
|
||||
(playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) {
|
||||
|
||||
SetIconGreen(section, entry);
|
||||
entries[entry].name = nameDefault;
|
||||
|
|
@ -1982,7 +1982,7 @@ function CheckPantheon(db, sectionName, playerData) {
|
|||
|
||||
if (playerData[property][entry] === true) {
|
||||
|
||||
switch(entry) {
|
||||
switch (entry) {
|
||||
|
||||
case "boundNail":
|
||||
SetIcon(section, entry, "bindingNail");
|
||||
|
|
@ -2025,12 +2025,39 @@ function CheckHallOfGods(db, playerData) {
|
|||
for (let entry in entries) {
|
||||
|
||||
id = entries[entry].id;
|
||||
|
||||
/* Backwards compatibility, disable and skip to next when not found */
|
||||
if (!playerData.hasOwnProperty(`statueState${id}`)) {
|
||||
|
||||
SetIconNone(section, entry);
|
||||
entries[entry].disabled = true;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
check = entries[entry].check;
|
||||
isUnlocked = playerData[`statueState${id}`].isUnlocked;
|
||||
|
||||
switch (entry) {
|
||||
|
||||
case "GreyPrinceUnlocked":
|
||||
case "GreyPrinceAttuned":
|
||||
case "GreyPrinceAscended":
|
||||
case "GreyPrinceRadiant":
|
||||
|
||||
/* When Zote OFF, disable entry and skip to next entry */
|
||||
if (playerData.zoteRescuedBuzzer === false && playerData.hasWalljump === true) {
|
||||
|
||||
SetIconNone(section, entry);
|
||||
entries[entry].disabled = true;
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (playerData[`statueState${id}`][check] === true) {
|
||||
|
||||
switch(check) {
|
||||
switch (check) {
|
||||
|
||||
case "isUnlocked":
|
||||
SetIconGreen(section, entry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue