mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
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.
This commit is contained in:
@@ -48,19 +48,11 @@ var/const/SMES_WIRE_FAILSAFES = 16 // Cut to disable failsafes, mend to reenable
|
|||||||
spawn(10)
|
spawn(10)
|
||||||
S.RCon = 1
|
S.RCon = 1
|
||||||
if(SMES_WIRE_INPUT)
|
if(SMES_WIRE_INPUT)
|
||||||
if(!S.input_pulsed)
|
S.toggle_input()
|
||||||
S.input_pulsed = 1
|
|
||||||
spawn(600)
|
|
||||||
S.input_pulsed = 0
|
|
||||||
if(SMES_WIRE_OUTPUT)
|
if(SMES_WIRE_OUTPUT)
|
||||||
if(!S.output_pulsed)
|
S.toggle_output()
|
||||||
S.output_pulsed = 1
|
|
||||||
spawn(600)
|
|
||||||
S.output_pulsed = 0
|
|
||||||
if(SMES_WIRE_GROUNDING)
|
if(SMES_WIRE_GROUNDING)
|
||||||
var/datum/effect/effect/system/spark_spread/spark = new /datum/effect/effect/system/spark_spread
|
S.grounding = 0
|
||||||
spark.set_up(10,1,src)
|
|
||||||
spark.start()
|
|
||||||
if(SMES_WIRE_FAILSAFES)
|
if(SMES_WIRE_FAILSAFES)
|
||||||
if(S.safeties_enabled)
|
if(S.safeties_enabled)
|
||||||
S.safeties_enabled = 0
|
S.safeties_enabled = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user