Delicate Flowers stats spoiler handling

This commit is contained in:
ReznoRMichael 2022-02-20 12:43:34 +01:00
parent c8604fa682
commit b795b99786
3 changed files with 21 additions and 1 deletions

View file

@ -1162,6 +1162,16 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
} }
} }
if (i === "xunFlowerBrokeTimes") {
if (amount < 1 && playerData.xunFlowerGiven === true) {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIcon)(section, i, "revealed");
} else if (amount > 0) {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIcon)(section, i, "revealed");
} else {
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconNone)(section, i);
}
}
break; break;
case "tukDungEgg": case "tukDungEgg":

File diff suppressed because one or more lines are too long

View file

@ -1335,6 +1335,16 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
} }
} }
if (i === "xunFlowerBrokeTimes") {
if (amount < 1 && playerData.xunFlowerGiven === true) {
SetIcon(section, i, "revealed");
} else if (amount > 0) {
SetIcon(section, i, "revealed");
} else {
SetIconNone(section, i);
}
}
break; break;
case "tukDungEgg": case "tukDungEgg":