Destroy Pass III

This commit is contained in:
Fox-McCloud
2015-07-08 03:39:52 -04:00
parent 737eb44b04
commit 0e8619a202
9 changed files with 23 additions and 43 deletions
+1 -2
View File
@@ -42,8 +42,7 @@ would spawn and follow the beaker, even if it is carried or thrown.
/obj/effect/proc/delete()
loc = null
if(reagents)
reagents.my_atom = null
reagents.delete()
qdel(reagents)
return
+3 -11
View File
@@ -52,17 +52,9 @@
var/list/species_fit = null //This object has a different appearance when worn by these species
/obj/item/Destroy()
if(istype(src.loc, /mob))
var/mob/H = src.loc
H.unEquip(src) // items at the very least get unequipped from their mob before being deleted
if(reagents && istype(reagents))
reagents.my_atom = null
reagents.delete()
if(hasvar(src, "holder"))
src:holder = null
/* BROKEN, FUCK BYOND
if(hasvar(src, "my_atom"))
src:my_atom = null*/
if(ismob(loc))
var/mob/m = loc
m.unEquip(src, 1)
return ..()
/obj/item/device