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) {
|
for (var entry in entries) {
|
||||||
id = entries[entry].id;
|
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;
|
check = entries[entry].check;
|
||||||
isUnlocked = playerData["statueState".concat(id)].isUnlocked;
|
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) {
|
if (playerData["statueState".concat(id)][check] === true) {
|
||||||
switch (check) {
|
switch (check) {
|
||||||
case "isUnlocked":
|
case "isUnlocked":
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1935,8 +1935,8 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
||||||
|
|
||||||
/* Void Idol backwards compatibility */
|
/* Void Idol backwards compatibility */
|
||||||
if (entry === "VoidIdol_1") {
|
if (entry === "VoidIdol_1") {
|
||||||
if (playerData.killedVoidIdol_1 === false
|
if (playerData.killedVoidIdol_1 === false &&
|
||||||
&& (playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) {
|
(playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) {
|
||||||
|
|
||||||
SetIconGreen(section, entry);
|
SetIconGreen(section, entry);
|
||||||
entries[entry].name = nameDefault;
|
entries[entry].name = nameDefault;
|
||||||
|
|
@ -2025,9 +2025,36 @@ function CheckHallOfGods(db, playerData) {
|
||||||
for (let entry in entries) {
|
for (let entry in entries) {
|
||||||
|
|
||||||
id = entries[entry].id;
|
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;
|
check = entries[entry].check;
|
||||||
isUnlocked = playerData[`statueState${id}`].isUnlocked;
|
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) {
|
if (playerData[`statueState${id}`][check] === true) {
|
||||||
|
|
||||||
switch (check) {
|
switch (check) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue