procs
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
reaction = new r
|
||||
if(!reaction.exclude)
|
||||
. += reaction
|
||||
sortTim(., /proc/cmp_gas_reaction)
|
||||
sortTim(., GLOBAL_PROC_REF(cmp_gas_reaction))
|
||||
|
||||
/proc/cmp_gas_reaction(datum/gas_reaction/a, datum/gas_reaction/b) // compares lists of reactions by the maximum priority contained within the list
|
||||
return b.priority - a.priority
|
||||
|
||||
@@ -216,7 +216,7 @@
|
||||
/obj/machinery/airalarm/Initialize(mapload, ndir, nbuild)
|
||||
. = ..()
|
||||
regenerate_TLV()
|
||||
RegisterSignal(SSdcs,COMSIG_GLOB_NEW_GAS,.proc/regenerate_TLV)
|
||||
RegisterSignal(SSdcs,COMSIG_GLOB_NEW_GAS, PROC_REF(regenerate_TLV))
|
||||
wires = new /datum/wires/airalarm(src)
|
||||
|
||||
if(ndir)
|
||||
|
||||
@@ -48,7 +48,7 @@ It's like a regular ol' straight pipe, but you can turn it on and off.
|
||||
return
|
||||
update_icon_nopipes(TRUE)
|
||||
switching = TRUE
|
||||
addtimer(CALLBACK(src, .proc/finish_interact), 10)
|
||||
addtimer(CALLBACK(src, PROC_REF(finish_interact)), 10)
|
||||
|
||||
/obj/machinery/atmospherics/components/binary/valve/proc/finish_interact()
|
||||
toggle()
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
occupant_overlay.pixel_y--
|
||||
add_overlay(occupant_overlay)
|
||||
add_overlay("cover-on")
|
||||
addtimer(CALLBACK(src, .proc/run_anim, anim_up, occupant_overlay), 7, TIMER_UNIQUE)
|
||||
addtimer(CALLBACK(src, PROC_REF(run_anim), anim_up, occupant_overlay), 7, TIMER_UNIQUE)
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/cryo_cell/nap_violation(mob/violator)
|
||||
open_machine()
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
var/datum/gas_mixture/air_contents = airs[1]
|
||||
volume_rate = clamp(number, 0, air_contents.return_volume())
|
||||
|
||||
addtimer(CALLBACK(src, .proc/broadcast_status), 2)
|
||||
addtimer(CALLBACK(src, PROC_REF(broadcast_status)), 2)
|
||||
|
||||
if(!("status" in signal.data)) //do not update_icon
|
||||
update_icon()
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
if(!id_tag)
|
||||
id_tag = assign_uid_vents()
|
||||
generate_clean_filter_types()
|
||||
RegisterSignal(SSdcs,COMSIG_GLOB_NEW_GAS,.proc/generate_clean_filter_types)
|
||||
RegisterSignal(SSdcs,COMSIG_GLOB_NEW_GAS, PROC_REF(generate_clean_filter_types))
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/vent_scrubber/proc/generate_clean_filter_types()
|
||||
clean_filter_types = list()
|
||||
|
||||
Reference in New Issue
Block a user