<th>Energy</th>
<td>
${city.energy.toLocaleString()} (<span class="rate-of-change ${energyRateOfChange < 0 ? 'danger-text' : 'success-text'}">${energyRateOfChange.toLocaleString()}</span>)
- @ 0% Battery Utilization
+ @ ${percent(city.energy, city.accumulators, 100)}% Accumulator Utilization
</td>
<th>Special Defenders</th>
<td>${city.sp_defenders.toLocaleString()}</td>
farms: number;
warehouses: number;
solar_panels: number;
+ accumulators: number;
barracks: number;
special_attacker_trainer: number;
special_defender_trainer: number;
farms: 5,
warehouses: 5,
solar_panels: 5,
+ accumulators: 5,
barracks: 0,
special_attacker_trainer: 0,
special_defender_trainer: 0,
return city.warehouses * 250;
}
+ maxEnergy(city: City): number {
+ return city.accumulators * 150;
+ }
+
async foodProductionPerTick(city: City): Promise<number> {
// eventually we should supply the warehouse formula
// to calculate the max amount of food created per tick