procs
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
/obj/item/organ/heart/Remove(special = FALSE)
|
||||
if(!special)
|
||||
addtimer(CALLBACK(src, .proc/stop_if_unowned), 12 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(stop_if_unowned)), 12 SECONDS)
|
||||
return ..()
|
||||
|
||||
/obj/item/organ/heart/proc/stop_if_unowned()
|
||||
@@ -44,7 +44,7 @@
|
||||
user.visible_message("<span class='notice'>[user] squeezes [src] to \
|
||||
make it beat again!</span>","<span class='notice'>You squeeze [src] to make it beat again!</span>")
|
||||
Restart()
|
||||
addtimer(CALLBACK(src, .proc/stop_if_unowned), 80)
|
||||
addtimer(CALLBACK(src, PROC_REF(stop_if_unowned)), 80)
|
||||
|
||||
/obj/item/organ/heart/proc/Stop()
|
||||
beating = 0
|
||||
@@ -244,7 +244,7 @@
|
||||
Stop()
|
||||
owner.visible_message("<span class='danger'>[owner] clutches at [owner.p_their()] chest as if [owner.p_their()] heart is stopping!</span>", \
|
||||
"<span class='userdanger'>You feel a terrible pain in your chest, as if your heart has stopped!</span>")
|
||||
addtimer(CALLBACK(src, .proc/Restart), 10 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(Restart)), 10 SECONDS)
|
||||
|
||||
/obj/item/organ/heart/cybernetic/on_life(delta_time, times_fired)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user