mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
[MIRROR] Snail Shells are now properly deleted on gib. (#1706)
* Snail Shells are now properly deleted on gib. (#54968) Snail shells, when gibbed, were previously dropping along with the rest of the snail's organs/equipment/etc. This was causing issues, as the snailshell has the nodrop trait, and was getting permanently getting stuck to non-snails hands, unable to be removed forever. This adds behavior to empty and then delete the snail shell's when dropped, and keeping people from getting 2 "snailhands" for all eternity. * Snail Shells are now properly deleted on gib. Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com>
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
max_integrity = 200
|
||||
resistance_flags = FIRE_PROOF | ACID_PROOF
|
||||
|
||||
/obj/item/storage/backpack/snail/dropped(mob/user, silent)
|
||||
. = ..()
|
||||
emptyStorage()
|
||||
qdel(src)
|
||||
|
||||
/obj/item/storage/backpack/snail/Initialize()
|
||||
. = ..()
|
||||
ADD_TRAIT(src, TRAIT_NODROP, "snailshell")
|
||||
|
||||
Reference in New Issue
Block a user