Fixes mutant bodypart assignments

This commit is contained in:
ShizCalev
2018-03-31 06:15:24 -05:00
committed by CitadelStationBot
parent dcaf3e2575
commit 1c76539a5b
10 changed files with 25 additions and 19 deletions
@@ -34,10 +34,10 @@
. = ..()
if(. && prob(35) && iscarbon(target))
var/mob/living/carbon/human/L = target
if(L.dna.features["tail_human"] == "Cat")
var/obj/item/organ/tail/cat/tail = L.getorgan(/obj/item/organ/tail/cat)
if(!QDELETED(tail))
visible_message("[src] severs [L]'s tail in one swift swipe!", "<span class='notice'>You sever [L]'s tail in one swift swipe.</span>")
L.dna.features["tail_human"] -= "Cat"
L.dna.species.mutant_bodyparts -= "tail_human"
L.update_body()
new /obj/item/organ/tail/cat(get_turf(target))
tail.Remove(L)
var/obj/item/organ/tail/cat/dropped_tail = new(target.drop_location())
dropped_tail.color = L.hair_color
return 1