hunter's journal number of creatures compatibility
This commit is contained in:
parent
38f9e98c04
commit
95414a658a
3 changed files with 15 additions and 16 deletions
|
|
@ -1189,24 +1189,25 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
countTotal = `${amount} / ${playerData.journalEntriesTotal}`;
|
||||
dataObject[i].amountTotal = playerData.journalEntriesTotal;
|
||||
|
||||
dataObject[i].max = dataObject[i].maxDefault;
|
||||
dataObject[i].spoiler = `${dataObject[i].spoilerDefault} (${dataObject[i].max} max)`;
|
||||
|
||||
/* when Zote is dead, the max Journal entries will equal 4 less instead of 164. For the green tick */
|
||||
if (playerData.zoteRescuedBuzzer === false && playerData.hasWalljump === true) {
|
||||
|
||||
dataObject[i].max -= 4; /* Substract GPZ and 3 Zotelings from max */
|
||||
if (playerData.hasOwnProperty("killedGreyPrince")) {
|
||||
dataObject[i].max -= 4; // Subtract GPZ and 3 Zotelings from max
|
||||
}
|
||||
dataObject[i].spoiler = `${dataObject[i].spoilerDefault} (${dataObject[i].max} max)`; /* Change spoiler for less confusion */
|
||||
}
|
||||
|
||||
/* when Grimm Troupe is banished, max Journal entries will be 1 or 2 less */
|
||||
if (playerData.destroyedNightmareLantern === true) {
|
||||
if (playerData.hasOwnProperty("destroyedNightmareLantern") && playerData.destroyedNightmareLantern === true) {
|
||||
|
||||
dataObject[i].max --; /* Substract Nightmare King from max */
|
||||
dataObject[i].max --; // Subtract Nightmare King from max
|
||||
|
||||
/* if the player didn't defeat any Grimmkin Nightmare before banishing, substract it from max */
|
||||
/* if the player didn't defeat any Grimmkin Nightmare before banishing, subtract it from max */
|
||||
if (playerData.killedFlameBearerLarge === false) {
|
||||
dataObject[i].max --; /* Substract Grimmkin Nightmare from max */
|
||||
dataObject[i].max --; // Subtract Grimmkin Nightmare from max
|
||||
dataObject[i].spoiler = `${dataObject[i].spoilerDefault} (${dataObject[i].max} max)`; /* Change spoiler for less confusion */
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue