Zote off journal fade entries

This commit is contained in:
ReznoRMichael 2021-07-28 20:05:56 +02:00
parent 43ece1216b
commit 4733e9c8f8
3 changed files with 39 additions and 1 deletions

View file

@ -1556,6 +1556,23 @@ function CheckHuntersJournal(db, sectionName, playerData) {
entries[entry].name = nameDefault;
if (playerData.hasOwnProperty("kills".concat(entry))) {
switch (entry) {
case "GreyPrince":
case "ZotelingBalloon":
case "ZotelingHopper":
case "ZotelingBuzzer":
/* When Zote == OFF (Neglect route), fade the entry and move to the next entry */
if (playerData.zoteDead === true || playerData.zoteRescuedBuzzer === false && playerData.hasWalljump === true) {
amountKillsLeft = 0;
entries[entry].disabled = true;
entries[entry].name = name;
CurrentDataBlank(section, entry);
continue;
}
break;
}
amountKillsLeft = playerData["kills".concat(entry)];
/* When killed at least 1, the entry has a gray symbol */

File diff suppressed because one or more lines are too long

View file

@ -1660,6 +1660,27 @@ function CheckHuntersJournal(db, sectionName, playerData) {
if (playerData.hasOwnProperty(`kills${entry}`)) {
switch (entry) {
case "GreyPrince":
case "ZotelingBalloon":
case "ZotelingHopper":
case "ZotelingBuzzer":
/* When Zote == OFF (Neglect route), fade the entry and move to the next entry */
if (playerData.zoteDead === true || (playerData.zoteRescuedBuzzer === false && playerData.hasWalljump === true)) {
amountKillsLeft = 0;
entries[entry].disabled = true;
entries[entry].name = name;
CurrentDataBlank(section, entry);
continue;
}
break;
}
amountKillsLeft = playerData[`kills${entry}`];
/* When killed at least 1, the entry has a gray symbol */