skip counting some entries

This commit is contained in:
ReznoRMichael 2021-07-28 21:55:34 +02:00
parent bfbc903b57
commit dbfc5d42e4
3 changed files with 11 additions and 5 deletions

View file

@ -421,6 +421,7 @@ function CheckExtendedCompletion(db) {
case "intro": case "intro":
case "hints": case "hints":
case "huntersJournal": case "huntersJournal":
case "huntersJournalOptional":
continue; continue;
default: default:
@ -438,13 +439,15 @@ function CheckExtendedCompletion(db) {
} }
if (entries[entry].hasOwnProperty("icon")) { if (entries[entry].hasOwnProperty("icon")) {
if (entries[entry].icon !== "none") {
intro.extendedCompletionTotal++; intro.extendedCompletionTotal++;
}
if (entries[entry].icon === "green") { if (entries[entry].icon === "green") {
intro.extendedCompletionDone++; intro.extendedCompletionDone++;
} }
if (entries[entry].hasOwnProperty("disabled") && entries[entry].disabled == true) { if (entries[entry].hasOwnProperty("disabled") && entries[entry].disabled === true) {
intro.extendedCompletionTotal--; intro.extendedCompletionTotal--;
} }
} }

File diff suppressed because one or more lines are too long

View file

@ -499,6 +499,7 @@ function CheckExtendedCompletion(db) {
case "intro": case "intro":
case "hints": case "hints":
case "huntersJournal": case "huntersJournal":
case "huntersJournalOptional":
continue; continue;
default: default:
@ -520,13 +521,15 @@ function CheckExtendedCompletion(db) {
if (entries[entry].hasOwnProperty("icon")) { if (entries[entry].hasOwnProperty("icon")) {
if (entries[entry].icon !== "none") {
intro.extendedCompletionTotal++; intro.extendedCompletionTotal++;
}
if (entries[entry].icon === "green") { if (entries[entry].icon === "green") {
intro.extendedCompletionDone++; intro.extendedCompletionDone++;
} }
if (entries[entry].hasOwnProperty("disabled") && entries[entry].disabled == true) { if (entries[entry].hasOwnProperty("disabled") && entries[entry].disabled === true) {
intro.extendedCompletionTotal--; intro.extendedCompletionTotal--;
} }
} }