Przeglądaj źródła

Fixed soldiers not counting as living

tags/v0.7.0^2
Fen Dweller 7 lat temu
rodzic
commit
b541cfcaf6
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      recursive-macro.js

+ 2
- 1
recursive-macro.js Wyświetl plik

@@ -227,11 +227,12 @@ function initContents(name,count) {
return result;
}


function get_living_prey(sum) {
let total = 0;
for (let key in sum) {
if (sum.hasOwnProperty(key)) {
if (key == "Micro" || key == "Macro" || key == "Person" || key == "Cow")
if (key == "Micro" || key == "Macro" || key == "Person" || key == "Cow" || key == 'Soldier')
total += sum[key];
}
}


Ładowanie…
Anuluj
Zapisz