Void Idol compatibility

This commit is contained in:
ReznoRMichael 2021-07-27 16:29:07 +02:00
parent f2412d4433
commit b0a7d8ade0
3 changed files with 20 additions and 1 deletions

View file

@ -1559,6 +1559,15 @@ function CheckHuntersJournal(db, sectionName, playerData) {
name += " (".concat(amountKillsLeft, ")");
entries[entry].name = name;
}
/* Void Idol backwards compatibility */
if (entry === "VoidIdol_1") {
if (playerData.killedVoidIdol_1 === false && (playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) {
CurrentDataTrue(section, entry);
entries[entry].name = nameDefault;
}
}
/* Earlier save files backwards compatibility (no undefined) */
} else {

File diff suppressed because one or more lines are too long

View file

@ -1660,6 +1660,16 @@ function CheckHuntersJournal(db, sectionName, playerData) {
entries[entry].name = name;
}
/* Void Idol backwards compatibility */
if (entry === "VoidIdol_1") {
if (playerData.killedVoidIdol_1 === false
&& (playerData.killedVoidIdol_2 === true || playerData.killedVoidIdol_3 === true)) {
CurrentDataTrue(section, entry);
entries[entry].name = nameDefault;
}
}
/* Earlier save files backwards compatibility (no undefined) */
} else {