procs
This commit is contained in:
@@ -287,7 +287,7 @@
|
||||
to_chat(usr, "<span class='notice'>You begin printing a custom assembly. This will take approximately [DisplayTimeText(cloning_time)]. You can still print \
|
||||
off normal parts during this time.</span>")
|
||||
playsound(src, 'sound/items/poster_being_created.ogg', 50, TRUE)
|
||||
addtimer(CALLBACK(src, .proc/print_program, usr), cloning_time)
|
||||
addtimer(CALLBACK(src, PROC_REF(print_program), usr), cloning_time)
|
||||
|
||||
if("cancel")
|
||||
if(!cloning || !program)
|
||||
|
||||
@@ -341,7 +341,7 @@
|
||||
assembly.visible_message("<span class='danger'>[assembly] has thrown [A]!</span>")
|
||||
log_attack("[assembly] [REF(assembly)] has thrown [A] with non-lethal force.")
|
||||
A.forceMove(drop_location())
|
||||
A.throw_at(locate(x_abs, y_abs, T.z), range, 3, null, null, null, CALLBACK(src, .proc/post_throw, A))
|
||||
A.throw_at(locate(x_abs, y_abs, T.z), range, 3, null, null, null, CALLBACK(src, PROC_REF(post_throw), A))
|
||||
|
||||
// If the item came from a grabber now we can update the outputs since we've thrown it.
|
||||
if(istype(G))
|
||||
@@ -419,7 +419,7 @@
|
||||
)
|
||||
|
||||
/obj/item/integrated_circuit/manipulation/matman/ComponentInitialize()
|
||||
var/datum/component/material_container/materials = AddComponent(/datum/component/material_container, mtypes, 100000, FALSE, /obj/item/stack, CALLBACK(src, .proc/is_insertion_ready), CALLBACK(src, .proc/AfterMaterialInsert))
|
||||
var/datum/component/material_container/materials = AddComponent(/datum/component/material_container, mtypes, 100000, FALSE, /obj/item/stack, CALLBACK(src, PROC_REF(is_insertion_ready)), CALLBACK(src, .proc/AfterMaterialInsert))
|
||||
materials.precise_insertion = TRUE
|
||||
.=..()
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@
|
||||
oldLoc = get_turf(oldLoc)
|
||||
if(!QDELETED(camera) && !updating && oldLoc != get_turf(src))
|
||||
updating = TRUE
|
||||
addtimer(CALLBACK(src, .proc/do_camera_update, oldLoc), VIDEO_CAMERA_BUFFER)
|
||||
addtimer(CALLBACK(src, PROC_REF(do_camera_update), oldLoc), VIDEO_CAMERA_BUFFER)
|
||||
#undef VIDEO_CAMERA_BUFFER
|
||||
|
||||
/obj/item/integrated_circuit/output/video_camera/proc/do_camera_update(oldLoc)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
power_draw_per_use = 2
|
||||
|
||||
/obj/item/integrated_circuit/time/delay/do_work()
|
||||
addtimer(CALLBACK(src, .proc/activate_pin, 2), delay)
|
||||
addtimer(CALLBACK(src, PROC_REF(activate_pin), 2), delay)
|
||||
|
||||
/obj/item/integrated_circuit/time/delay/five_sec
|
||||
name = "five-sec delay circuit"
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
/obj/item/integrated_circuit/time/ticker/proc/tick()
|
||||
if(is_running)
|
||||
addtimer(CALLBACK(src, .proc/tick), delay)
|
||||
addtimer(CALLBACK(src, PROC_REF(tick)), delay)
|
||||
if(world.time > next_fire)
|
||||
next_fire = world.time + delay
|
||||
activate_pin(1)
|
||||
|
||||
Reference in New Issue
Block a user