Fixes mutant bodypart assignments
This commit is contained in:
committed by
CitadelStationBot
parent
dcaf3e2575
commit
1c76539a5b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user