mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +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
|
||||
|
||||
Reference in New Issue
Block a user