From 4560b7cc616b47c2a2c2384cda1a32735d08ef8b Mon Sep 17 00:00:00 2001 From: Atlantiscze Date: Wed, 5 Nov 2014 11:43:13 +0100 Subject: [PATCH] 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. --- code/game/gamemodes/events/power_failure.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/gamemodes/events/power_failure.dm b/code/game/gamemodes/events/power_failure.dm index 87dd5f335c..a2c7f24e49 100644 --- a/code/game/gamemodes/events/power_failure.dm +++ b/code/game/gamemodes/events/power_failure.dm @@ -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()