Zote off journal fade entries
This commit is contained in:
parent
43ece1216b
commit
4733e9c8f8
3 changed files with 39 additions and 1 deletions
17
build/app.js
17
build/app.js
|
|
@ -1556,6 +1556,23 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
||||||
entries[entry].name = nameDefault;
|
entries[entry].name = nameDefault;
|
||||||
|
|
||||||
if (playerData.hasOwnProperty("kills".concat(entry))) {
|
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)];
|
amountKillsLeft = playerData["kills".concat(entry)];
|
||||||
/* When killed at least 1, the entry has a gray symbol */
|
/* When killed at least 1, the entry has a gray symbol */
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1660,6 +1660,27 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
||||||
|
|
||||||
if (playerData.hasOwnProperty(`kills${entry}`)) {
|
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}`];
|
amountKillsLeft = playerData[`kills${entry}`];
|
||||||
|
|
||||||
/* When killed at least 1, the entry has a gray symbol */
|
/* When killed at least 1, the entry has a gray symbol */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue