add backwards compatibility to paleLurkersRetreat

This commit is contained in:
ReznoRMichael 2022-02-28 10:18:50 +01:00
commit e9b7d2b177
4 changed files with 29 additions and 3 deletions

View file

@ -1257,7 +1257,6 @@ function CheckAdditionalThings(section, saveFile) {
case "pantheonCrystalGuardian":
case "pantheonEnragedGuardian":
case "mantisVillageFloorLever":
case "pathOfPainEntrance":
case "whiteLadyRoom":
case "throneRoomLoreTablet":
case "towerOfLoveSecretRoom":
@ -1270,6 +1269,19 @@ function CheckAdditionalThings(section, saveFile) {
FindWorldItem(entries[i].id, entries[i].sceneName) ? (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(section, i) : (0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(section, i);
break;
case "pathOfPainEntrance":
/* Backwards compatibility with older save files */
if (playerData.hasOwnProperty("destroyedNightmareLantern") === false) {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconNone)(section, i);
entries[i].disabled = true;
} else if (FindWorldItem(entries[i].id, entries[i].sceneName)) {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(section, i);
} else {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(section, i);
}
break;
case "grimmTentSecretRoom":
/* Backwards compatibility with older save files */
if (playerData.hasOwnProperty("destroyedNightmareLantern") === false) {

File diff suppressed because one or more lines are too long