corrected Hunter's Journal algorithm
This commit is contained in:
parent
701a1112d4
commit
e558e621e3
3 changed files with 21 additions and 22 deletions
17
build/app.js
17
build/app.js
|
|
@ -1855,6 +1855,14 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
|||
}
|
||||
|
||||
amountKillsLeft = playerData["kills".concat(entry)];
|
||||
/* When the Hunter's Note is unlocked, the entry has a green symbol */
|
||||
|
||||
if (amountKillsLeft === 0) {
|
||||
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(section, entry);
|
||||
/* If not, show how many remain to defeat in the name */
|
||||
} else {
|
||||
name += " (".concat(amountKillsLeft, ")");
|
||||
entries[entry].name = name;
|
||||
/* When killed at least 1, the entry has a gray symbol */
|
||||
|
||||
if (playerData["killed".concat(entry)] === true) {
|
||||
|
|
@ -1863,15 +1871,6 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
|||
} else {
|
||||
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(section, entry);
|
||||
}
|
||||
/* When the Hunter's Note is unlocked, the entry has a green symbol */
|
||||
|
||||
|
||||
if (amountKillsLeft === 0) {
|
||||
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(section, entry);
|
||||
/* If not, show how many remain to defeat in the name */
|
||||
} else {
|
||||
name += " (".concat(amountKillsLeft, ")");
|
||||
entries[entry].name = name;
|
||||
}
|
||||
/* Void Idol backwards compatibility */
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -2073,17 +2073,6 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
|||
|
||||
amountKillsLeft = playerData[`kills${entry}`];
|
||||
|
||||
/* When killed at least 1, the entry has a gray symbol */
|
||||
if (playerData[`killed${entry}`] === true) {
|
||||
|
||||
SetIconPartialJournal(section, entry);
|
||||
|
||||
/* When not killed, the entry is undiscovered */
|
||||
} else {
|
||||
|
||||
SetIconRed(section, entry);
|
||||
}
|
||||
|
||||
/* When the Hunter's Note is unlocked, the entry has a green symbol */
|
||||
if (amountKillsLeft === 0) {
|
||||
|
||||
|
|
@ -2094,6 +2083,17 @@ function CheckHuntersJournal(db, sectionName, playerData) {
|
|||
|
||||
name += ` (${amountKillsLeft})`;
|
||||
entries[entry].name = name;
|
||||
|
||||
/* When killed at least 1, the entry has a gray symbol */
|
||||
if (playerData[`killed${entry}`] === true) {
|
||||
|
||||
SetIconPartialJournal(section, entry);
|
||||
|
||||
/* When not killed, the entry is undiscovered */
|
||||
} else {
|
||||
|
||||
SetIconRed(section, entry);
|
||||
}
|
||||
}
|
||||
|
||||
/* Void Idol backwards compatibility */
|
||||
|
|
|
|||
Loading…
Reference in a new issue