mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user