Esempio n. 1
0
 public void calcStats() {
   atkTotal = 0;
   defTotal = 0;
   spdTotal = 0;
   for (Soldier s : healthy) {
     atkTotal += s.baseAtk + s.getBonusAtk();
     defTotal += s.baseDef + s.getBonusDef();
     spdTotal += s.baseSpd + s.getBonusSpd();
   }
   if (!player) minWealth = (int) (MIN_WEALTH_FACTOR * getTotalSize());
   else minWealth = 0;
 }