mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-29 03:22:12 +00:00
[MIRROR] Refactors do_after w/ TG's do_after (#11486)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c1fffe13f3
commit
f85a202d80
@@ -141,7 +141,7 @@
|
||||
SIGNAL_HANDLER
|
||||
holder = equipper
|
||||
//RegisterSignal(holder, COMSIG_MOVABLE_DISPOSING, PROC_REF(disposing_react), override=TRUE)
|
||||
RegisterSignal(holder, COMSIG_PARENT_QDELETING, PROC_REF(holder_deleted), override=TRUE)
|
||||
RegisterSignal(holder, COMSIG_QDELETING, PROC_REF(holder_deleted), override=TRUE)
|
||||
//override for the preqdeleted is necessary because putting parent in hands sends the signal that this proc is registered towards,
|
||||
//so putting an object in hands and then equipping the item on a clothing slot (without dropping it first)
|
||||
//will always runtime without override = TRUE
|
||||
@@ -149,7 +149,7 @@
|
||||
/datum/component/squeak/proc/on_drop(datum/source, mob/user)
|
||||
SIGNAL_HANDLER
|
||||
//UnregisterSignal(user, COMSIG_MOVABLE_DISPOSING)
|
||||
UnregisterSignal(user, COMSIG_PARENT_QDELETING)
|
||||
UnregisterSignal(user, COMSIG_QDELETING)
|
||||
holder = null
|
||||
|
||||
///just gets rid of the reference to holder in the case that theyre qdeleted
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
mobspawned.init_vore()
|
||||
if(neutral == TRUE)
|
||||
mobspawned.faction = "neutral"
|
||||
RegisterSignal(mobspawned, COMSIG_PARENT_QDELETING, PROC_REF(clean_mob))
|
||||
RegisterSignal(mobspawned, COMSIG_QDELETING, PROC_REF(clean_mob))
|
||||
|
||||
/obj/machinery/button/mob_spawner_button/proc/clean_mob()
|
||||
SIGNAL_HANDLER
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
costumes = typesof(/obj/item/storage/box/halloween/)
|
||||
|
||||
/obj/structure/boxpile/attack_hand(mob/living/user)
|
||||
if(!do_after(user, 5 SECONDS, exclusive = TASK_USER_EXCLUSIVE))
|
||||
if(!do_after(user, 5 SECONDS))
|
||||
return
|
||||
if(!user.ckey)
|
||||
return
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
oocnotes = 1
|
||||
to_chat(src, span_notify("You begin to reform. You will need to remain still."))
|
||||
visible_message(span_notify("[src] rapidly contorts and shifts!"), span_danger("You begin to reform."))
|
||||
if (do_after(src, 40,exclusive = TASK_ALL_EXCLUSIVE))
|
||||
if (do_after(src, 4 SECONDS))
|
||||
if (client?.prefs)
|
||||
client.prefs.vanity_copy_to(src, FALSE, flavour, oocnotes, FALSE)
|
||||
visible_message(span_notify("[src] adopts a new form!"), span_danger("You have reformed."))
|
||||
|
||||
Reference in New Issue
Block a user