mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
[READY]Makes addtimer use callbacks (#22660)
* Makes addtimer use callbacks * I broke the comment * I fucked up the regex * this was a silly idea.
This commit is contained in:
committed by
oranges
parent
fd337f0741
commit
bee4b132a3
@@ -18,10 +18,10 @@
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
addtimer(src, "close", 0, TIMER_UNIQUE)
|
||||
addtimer(CALLBACK(src, .proc/close), 0, TIMER_UNIQUE)
|
||||
// Close any attached airlocks as well
|
||||
for(var/obj/machinery/door/D in orange(1, src))
|
||||
addtimer(src, "close", 0, TIMER_UNIQUE)
|
||||
addtimer(CALLBACK(src, .proc/close), 0, TIMER_UNIQUE)
|
||||
|
||||
/obj/machinery/door/airlock/onShuttleMove()
|
||||
shuttledocked = 0
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
L.visible_message("<span class='revennotice'>A strange purple glow wraps itself around [L] as [L.p_they()] suddenly fall[L.p_s()] unconscious.</span>",
|
||||
"<span class='revendanger'>[desc]</span>")
|
||||
// Don't let them sit suround unconscious forever
|
||||
addtimer(src, "sleeper_dreams", 100, TIMER_NORMAL, L)
|
||||
addtimer(CALLBACK(src, .proc/sleeper_dreams, L), 100)
|
||||
|
||||
// Existing sleepers
|
||||
for(var/i in found)
|
||||
|
||||
Reference in New Issue
Block a user