From 39229e4a1fdfa75008d4649fa76222b51b0fe248 Mon Sep 17 00:00:00 2001 From: Atlantiscze Date: Mon, 8 Dec 2014 03:55:35 +0100 Subject: [PATCH] Few updates to SMES wiring datum: - Pulsing input/output wires now toggles the input/output settings, instead of disabling for 60s - Pulsing grounding wire now disables grounding until the wire is cut and mended again. --- code/datums/wires/smes.dm | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/code/datums/wires/smes.dm b/code/datums/wires/smes.dm index 2e90ad82a9..59fb43078b 100644 --- a/code/datums/wires/smes.dm +++ b/code/datums/wires/smes.dm @@ -48,19 +48,11 @@ var/const/SMES_WIRE_FAILSAFES = 16 // Cut to disable failsafes, mend to reenable spawn(10) S.RCon = 1 if(SMES_WIRE_INPUT) - if(!S.input_pulsed) - S.input_pulsed = 1 - spawn(600) - S.input_pulsed = 0 + S.toggle_input() if(SMES_WIRE_OUTPUT) - if(!S.output_pulsed) - S.output_pulsed = 1 - spawn(600) - S.output_pulsed = 0 + S.toggle_output() if(SMES_WIRE_GROUNDING) - var/datum/effect/effect/system/spark_spread/spark = new /datum/effect/effect/system/spark_spread - spark.set_up(10,1,src) - spark.start() + S.grounding = 0 if(SMES_WIRE_FAILSAFES) if(S.safeties_enabled) S.safeties_enabled = 0