Adds DROPDEL flag; items will qdel() on dropped()

Pretty self explanatory, replaces writing a dropped() proc that just
calls qdel() with a flag that does it for you.
This commit is contained in:
Jack Edge
2016-06-17 12:14:28 +01:00
parent 030911962a
commit 8ca69eabbb
12 changed files with 28 additions and 62 deletions
+1 -6
View File
@@ -4,7 +4,7 @@
unconcious or dead humans, butchering all other living things to \
sustain the zombie, forcing open airlock doors and opening \
child-safe caps on bottles."
flags = NODROP|ABSTRACT
flags = NODROP|ABSTRACT|DROPDEL
icon = 'icons/effects/blood.dmi'
icon_state = "bloodhand_left"
var/icon_left = "bloodhand_left"
@@ -24,11 +24,6 @@
if(slot_r_hand)
icon_state = icon_left
/obj/item/zombie_hand/dropped(mob/user)
. = ..()
// Zombie hands are force dropped upon species loss
qdel(src)
/obj/item/zombie_hand/afterattack(atom/target, mob/user, proximity_flag)
. = ..()
if(!proximity_flag)