change default spoiler to 160 or 164

This commit is contained in:
ReznoRMichael 2021-07-18 23:51:55 +02:00
commit f3d917ec3f
4 changed files with 19 additions and 5 deletions

View file

@ -1021,9 +1021,11 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
/* when Zote is dead, the max Journal entries will equal = 160 instead of 164. For the green tick */
if (playerData.zoteRescuedBuzzer === false && playerData.hasWalljump === true) {
dataObject[i].max = dataObject[i].maxZoteOff; /* Substract GPZ and 3 Zotelings from max */
dataObject[i].spoiler = dataObject[i].spoilerZoteOff; /* Change spoiler for less confusion */
} else {
/* otherwise, set back to 164 */
dataObject[i].max = dataObject[i].maxDefault;
dataObject[i].spoiler = dataObject[i].spoilerDefault;
}
console.info(i + ".max", dataObject[i].max);

View file

@ -1581,7 +1581,9 @@ const HK = {
},
journalEntriesCompleted: {
name: "Creatures Encountered",
spoiler: "Hunter's Journal (160+4 max)",
spoiler: "Hunter's Journal (160 or 164 max)",
spoilerDefault: "Hunter's Journal (164 max)",
spoilerZoteOff: "Hunter's Journal (160 max)",
max: 164,
maxDefault: 164,
maxZoteOff: 160,
@ -1592,7 +1594,9 @@ const HK = {
*/
journalNotesCompleted: {
name: "Hunter Notes Completed",
spoiler: "Hunter's Journal (160+4 max)",
spoiler: "Hunter's Journal (160 or 164 max)",
spoilerDefault: "Hunter's Journal (164 max)",
spoilerZoteOff: "Hunter's Journal (160 max)",
max: 164,
maxDefault: 164,
maxZoteOff: 160,