take ore-refinery + mining_facility energy consumption in consideration
[browser-rts.git] / src / repository / city.ts
index c3bcae849b50979254c6b6d418a8f3a0217a1892..b2392fcf7f93d345520868519f064968236499cf 100644 (file)
@@ -377,7 +377,9 @@ where l.sector_id = ?`, [sector_id]);
         city.special_attacker_trainer * buildingsMap['special_attacker_trainer'].energy,
         city.homes * buildingsMap['homes'].energy,
         city.warehouses * buildingsMap['warehouses'].energy,
-        city.solar_panels * buildingsMap['solar_panels'].energy
+        city.solar_panels * buildingsMap['solar_panels'].energy,
+        city.mining_facilities * buildingsMap['mining_facilities'].energy,
+        city.ore_refinery * buildingsMap['ore_refinery'].energy
       ]);
       return totalEnergy;
     }