mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user