geo rocks max is 205 for extended completion

This commit is contained in:
ReznoRMichael 2021-07-30 15:59:23 +02:00
parent 2a87cadb5b
commit 0437cbf4ae
3 changed files with 16 additions and 5 deletions

View file

@ -517,9 +517,15 @@ function CheckExtendedCompletion(db) {
max = 0; max = 0;
} }
/* Counting Geo Rocks */ /* Counting Geo Rocks */
else if (entries[entry].hasOwnProperty("activated") && entries[entry].hasOwnProperty("discoveredTotal")) { else if (entries[entry].hasOwnProperty("activated") && entries[entry].hasOwnProperty("max")) {
amount = entries[entry].activated; amount = entries[entry].activated;
max = entries[entry].discoveredTotal; max = entries[entry].max;
/* Check in case the player has discovered more than 205 (max) Geo Rocks */
if (max < entries[entry].discoveredTotal) {
max = entries[entry].discoveredTotal;
}
intro.extendedCompletionDone += amount; intro.extendedCompletionDone += amount;
intro.extendedCompletionTotal += max; intro.extendedCompletionTotal += max;
console.info("".concat(entry, ": ").concat(amount, "/").concat(max), entries[entry].name); console.info("".concat(entry, ": ").concat(amount, "/").concat(max), entries[entry].name);

File diff suppressed because one or more lines are too long

View file

@ -608,10 +608,15 @@ function CheckExtendedCompletion(db) {
max = 0; max = 0;
} }
/* Counting Geo Rocks */ /* Counting Geo Rocks */
else if (entries[entry].hasOwnProperty("activated") && entries[entry].hasOwnProperty("discoveredTotal")) { else if (entries[entry].hasOwnProperty("activated") && entries[entry].hasOwnProperty("max")) {
amount = entries[entry].activated; amount = entries[entry].activated;
max = entries[entry].discoveredTotal; max = entries[entry].max;
/* Check in case the player has discovered more than 205 (max) Geo Rocks */
if (max < entries[entry].discoveredTotal) {
max = entries[entry].discoveredTotal;
}
intro.extendedCompletionDone += amount; intro.extendedCompletionDone += amount;
intro.extendedCompletionTotal += max; intro.extendedCompletionTotal += max;