Transforming species as a cling now properly handles dropping items. Fixing cling blades laying on the floor (#17483)

This commit is contained in:
Farie82
2022-03-15 11:36:32 +01:00
committed by GitHub
parent 842be3fa3a
commit 1d4a554124
@@ -1360,8 +1360,10 @@
dna.species.create_organs(src)
for(var/obj/item/thing in kept_items)
equip_to_slot_if_possible(thing, kept_items[thing])
var/equipped = equip_to_slot_if_possible(thing, kept_items[thing])
thing.flags = item_flags[thing] // Reset the flags to the origional ones
if(!equipped)
thing.dropped() // Ensures items know they are dropped. Using their original flags
//Handle default hair/head accessories for created mobs.
var/obj/item/organ/external/head/H = get_organ("head")