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