Makes radio signals update properly when you change their host machine's frequency

Update machinery.dm
This commit is contained in:
SteelSlayer
2019-12-31 22:42:53 -06:00
parent a326db3879
commit 2bf7c04794
19 changed files with 29 additions and 25 deletions
@@ -162,7 +162,7 @@
return 1
//Radio remote control
/obj/machinery/atmospherics/binary/dp_vent_pump/proc/set_frequency(new_frequency)
/obj/machinery/atmospherics/binary/dp_vent_pump/set_frequency(new_frequency)
SSradio.remove_object(src, frequency)
frequency = new_frequency
if(frequency)
@@ -70,7 +70,7 @@
return 1
//Radio remote control
/obj/machinery/atmospherics/binary/passive_gate/proc/set_frequency(new_frequency)
/obj/machinery/atmospherics/binary/passive_gate/set_frequency(new_frequency)
SSradio.remove_object(src, frequency)
frequency = new_frequency
if(frequency)
@@ -121,7 +121,7 @@ Thus, the two variables affect pump operation are set in New():
return 1
//Radio remote control
/obj/machinery/atmospherics/binary/pump/proc/set_frequency(new_frequency)
/obj/machinery/atmospherics/binary/pump/set_frequency(new_frequency)
SSradio.remove_object(src, frequency)
frequency = new_frequency
if(frequency)
@@ -105,7 +105,7 @@
if(!powered())
icon_state = "valve[open]nopower"
/obj/machinery/atmospherics/binary/valve/digital/proc/set_frequency(new_frequency)
/obj/machinery/atmospherics/binary/valve/digital/set_frequency(new_frequency)
SSradio.remove_object(src, frequency)
frequency = new_frequency
if(frequency)
@@ -123,7 +123,7 @@ Thus, the two variables affect pump operation are set in New():
return 1
/obj/machinery/atmospherics/binary/volume_pump/proc/set_frequency(new_frequency)
/obj/machinery/atmospherics/binary/volume_pump/set_frequency(new_frequency)
SSradio.remove_object(src, frequency)
frequency = new_frequency
if(frequency)