corrected Hunter's Journal algorithm
This commit is contained in:
parent
701a1112d4
commit
e558e621e3
3 changed files with 21 additions and 22 deletions
|
|
@ -2073,27 +2073,27 @@ 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) {
|
||||
|
||||
SetIconGreen(section, entry);
|
||||
|
||||
/* If not, show how many remain to defeat in the name */
|
||||
/* If not, show how many remain to defeat in the name */
|
||||
} else {
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue