procs
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
items_list += I
|
||||
// ayy only dropped signal for performance, we can't possibly have shitcode that doesn't call it when removing items from a mob, right?
|
||||
// .. right??!
|
||||
RegisterSignal(I, COMSIG_ITEM_DROPPED, .proc/magnetic_catch)
|
||||
RegisterSignal(I, COMSIG_ITEM_DROPPED, PROC_REF(magnetic_catch))
|
||||
|
||||
/obj/item/organ/cyberimp/arm/proc/magnetic_catch(datum/source, mob/user)
|
||||
. = COMPONENT_DROPPED_RELOCATION
|
||||
@@ -284,7 +284,7 @@
|
||||
/obj/item/organ/cyberimp/arm/shield/Insert(mob/living/carbon/M, special = FALSE, drop_if_replaced = TRUE)
|
||||
. = ..()
|
||||
if(.)
|
||||
RegisterSignal(M, COMSIG_LIVING_ACTIVE_BLOCK_START, .proc/on_signal)
|
||||
RegisterSignal(M, COMSIG_LIVING_ACTIVE_BLOCK_START, PROC_REF(on_signal))
|
||||
|
||||
/obj/item/organ/cyberimp/arm/shield/Remove(special = FALSE)
|
||||
UnregisterSignal(owner, COMSIG_LIVING_ACTIVE_BLOCK_START)
|
||||
|
||||
Reference in New Issue
Block a user