mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Storage implants drop their items when removed.
This commit is contained in:
@@ -10,10 +10,16 @@
|
||||
SEND_SIGNAL(src, COMSIG_TRY_STORAGE_SHOW, imp_in, TRUE)
|
||||
|
||||
/obj/item/implant/storage/removed(source, silent = FALSE, special = 0)
|
||||
if(!special)
|
||||
var/datum/component/storage/lostimplant = GetComponent(/datum/component/storage/concrete/implant)
|
||||
var/mob/living/implantee = source
|
||||
for (var/obj/item/I in lostimplant.contents())
|
||||
I.add_mob_blood(implantee)
|
||||
lostimplant.do_quick_empty()
|
||||
implantee.visible_message("<span class='warning'>A bluespace pocket opens around [src] as it exits [implantee], spewing out its contents and rupturing the surrounding tissue!</span>")
|
||||
implantee.apply_damage(20, BRUTE, BODY_ZONE_CHEST)
|
||||
qdel(lostimplant)
|
||||
. = ..()
|
||||
if(.)
|
||||
if(!special)
|
||||
qdel(GetComponent(/datum/component/storage/concrete/implant))
|
||||
|
||||
/obj/item/implant/storage/implant(mob/living/target, mob/user, silent = FALSE, force = FALSE)
|
||||
for(var/X in target.implants)
|
||||
|
||||
Reference in New Issue
Block a user