seal of binding, void idol, pop BC

This commit is contained in:
ReznoRMichael 2021-02-16 02:49:43 +01:00
parent a6145a2a72
commit 4e07e02f1b
2 changed files with 31 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -778,7 +778,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
if (i === "greyPrinceDefeats") { if (i === "greyPrinceDefeats") {
// backwards compatibility with earlier game versions // backwards compatibility with earlier game versions
if (playerData.hasOwnProperty("greyPrinceDefeats") === false) { if (playerData.hasOwnProperty(i) === false) {
CurrentDataBlank(); CurrentDataBlank();
textPrefix = `<del>${dataObject[i].name}</del>`; textPrefix = `<del>${dataObject[i].name}</del>`;
textSuffix = `<del>${textSuffix}</del>`; textSuffix = `<del>${textSuffix}</del>`;
@ -791,7 +791,7 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
if (i === "whiteDefenderDefeats") { if (i === "whiteDefenderDefeats") {
// backwards compatibility with earlier game versions // backwards compatibility with earlier game versions
if (playerData.hasOwnProperty("whiteDefenderDefeats") === false) { if (playerData.hasOwnProperty(i) === false) {
CurrentDataBlank(); CurrentDataBlank();
textPrefix = `<del>${dataObject[i].name}</del>`; textPrefix = `<del>${dataObject[i].name}</del>`;
textSuffix = `<del>${textSuffix}</del>`; textSuffix = `<del>${textSuffix}</del>`;
@ -896,19 +896,46 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
} }
break; break;
case "killsBindingSeal": case "killsBindingSeal":
if (playerData.hasOwnProperty(i) === false) {
CurrentDataBlank();
textPrefix = `<del>${textPrefix}</del>`;
textSuffix = `<del>${textSuffix}</del>`;
break;
}
(playerData[i] == 0) ? CurrentDataTrue(): CurrentDataFalse(); (playerData[i] == 0) ? CurrentDataTrue(): CurrentDataFalse();
break; break;
case "killedVoidIdol_1": case "killedVoidIdol_1":
if (playerData.hasOwnProperty(i) === false) {
CurrentDataBlank();
textPrefix = `<del>${textPrefix}</del>`;
textSuffix = `<del>${textSuffix}</del>`;
break;
}
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse(); (playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
if (playerData[i] === false && (playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) CurrentDataTrue(); if (playerData[i] === false && (playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) CurrentDataTrue();
break; break;
case "killedVoidIdol_2": case "killedVoidIdol_2":
if (playerData.hasOwnProperty(i) === false) {
CurrentDataBlank();
textPrefix = `<del>${textPrefix}</del>`;
textSuffix = `<del>${textSuffix}</del>`;
break;
}
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse(); (playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
if (playerData[i] === false && playerData.killedVoidIdol_3 === true) CurrentDataTrue(); if (playerData[i] === false && playerData.killedVoidIdol_3 === true) CurrentDataTrue();
break; break;
case "killedVoidIdol_3":
if (playerData.hasOwnProperty(i) === false) {
CurrentDataBlank();
textPrefix = `<del>${textPrefix}</del>`;
textSuffix = `<del>${textSuffix}</del>`;
break;
}
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
break;
case "greyPrinceDefeated": case "greyPrinceDefeated":
// compatibility with earlier game versions // compatibility with earlier game versions
if (playerData.hasOwnProperty("greyPrinceDefeated") === false) { if (playerData.hasOwnProperty(i) === false) {
CurrentDataBlank(); CurrentDataBlank();
textPrefix = `<del>${textPrefix}</del>`; textPrefix = `<del>${textPrefix}</del>`;
textSuffix = `<del>${textSuffix}</del>`; textSuffix = `<del>${textSuffix}</del>`;