PoH compatibility with older saves

This commit is contained in:
ReznoRMichael 2021-02-14 18:27:05 +01:00
parent 50cdcfa6ed
commit e9a69c8a50
2 changed files with 9 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -799,7 +799,14 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
textPrefix += ": " + total;
break;
case "bossDoorStateTier5":
(playerData[i].completed === true) ? CurrentDataTrue(): CurrentDataFalse();
if (playerData.hasOwnProperty("bossDoorStateTier5") === false) {
CurrentDataBlank();
textPrefix = `<del>${textPrefix}</del>`;
textSuffix = `<del>${textSuffix}</del>`;
}
else {
(playerData[i].completed === true) ? CurrentDataTrue(): CurrentDataFalse();
}
break;
case "killsBindingSeal":
(playerData[i] == 0) ? CurrentDataTrue(): CurrentDataFalse();