mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Implants, implanted items and other bodypart contents no longer get deleted on species change (#28540)
* transfers implants, cavity implants and bodypart contents when changing species. * Dropping cyber implants on the ground instead
This commit is contained in:
@@ -14,8 +14,17 @@
|
||||
return
|
||||
if(issmall(H))
|
||||
return
|
||||
|
||||
var/list/implants = list()
|
||||
|
||||
for(var/obj/item/organ/external/body_part in H.bodyparts)
|
||||
implants += body_part.hidden
|
||||
for(var/obj/item/I in body_part.contents)
|
||||
if(!istype(I, /obj/item/organ))
|
||||
implants += I
|
||||
|
||||
for(var/obj/item/W in H)
|
||||
if(istype(W, /obj/item/bio_chip))
|
||||
if(istype(W, /obj/item/bio_chip) || (W in implants))
|
||||
continue
|
||||
H.drop_item_to_ground(W)
|
||||
|
||||
@@ -46,10 +55,19 @@
|
||||
return
|
||||
if(!issmall(H))
|
||||
return
|
||||
|
||||
var/list/implants = list()
|
||||
|
||||
for(var/obj/item/organ/external/body_part in H.bodyparts)
|
||||
implants += body_part.hidden
|
||||
for(var/obj/item/I in body_part.contents)
|
||||
if(!istype(I, /obj/item/organ))
|
||||
implants += I
|
||||
|
||||
for(var/obj/item/W in H)
|
||||
if(W == H.w_uniform) // will be torn
|
||||
continue
|
||||
if(istype(W, /obj/item/bio_chip))
|
||||
if(istype(W, /obj/item/bio_chip) || (W in implants))
|
||||
continue
|
||||
H.drop_item_to_ground(W)
|
||||
H.regenerate_icons()
|
||||
|
||||
Reference in New Issue
Block a user