Buildable SMESs now work properly with power restore secret.

- Instead of setting SMES to output hardcoded amount, maximal value deducted from that SMESs variables is used.
- For example, the engineering SMES is quadcoil type, giving it maximal output of 1MW. However, hardcoded 200kW would be barely enough to run the station.
This commit is contained in:
Atlantiscze
2014-11-05 11:43:13 +01:00
parent 1a274475d1
commit 4560b7cc61

View File

@@ -49,7 +49,7 @@
if(S.z != 1)
continue
S.charge = S.capacity
S.output = 200000
S.output = output_level_max // Most new SMESs on map are of buildable type, and may actually have higher output limit than 200kW. Use max output of that SMES instead.
S.online = 1
S.updateicon()
S.power_change()