catch dropped

This commit is contained in:
kevinz000
2020-04-22 10:54:42 -07:00
parent 3626cc5d28
commit c551006295
6 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -333,7 +333,8 @@
I.moveToNullspace()
else
I.forceMove(newloc)
I.dropped(src)
if(I.dropped(src) == ITEM_RELOCATED_BY_DROPPED)
return FALSE
return TRUE
//Outdated but still in use apparently. This should at least be a human proc.
@@ -33,6 +33,7 @@
RegisterSignal(I, COMSIG_ITEM_DROPPED, .proc/magnetic_catch)
/obj/item/organ/cyberimp/arm/proc/magnetic_catch(datum/source, mob/user)
. = COMPONENT_DROPPED_RELOCATION
var/obj/item/I = source //if someone is misusing the signal, just runtime
if(I in items_list)
if(I in contents) //already in us somehow? i probably shouldn't catch this so it's easier to spot bugs but eh..