fixes people with no skin/golems dropping skin when gibbed

This commit is contained in:
CitadelStationBot
2017-04-24 17:59:57 -05:00
parent a6f6317b51
commit a39a405b60
3 changed files with 14 additions and 5 deletions
@@ -186,10 +186,9 @@
var/mob/living/carbon/human/gibee = occupant
if(gibee.dna && gibee.dna.species)
typeofmeat = gibee.dna.species.meat
typeofskin = gibee.dna.species.skinned_type
else
typeofmeat = /obj/item/weapon/reagent_containers/food/snacks/meat/slab/human
typeofskin = /obj/item/stack/sheet/animalhide/human
if(gibee.dna.species.skinned_type)
typeofskin = gibee.dna.species.skinned_type
else if(iscarbon(occupant))
var/mob/living/carbon/C = occupant
typeofmeat = C.type_of_meat