Fixes a bug w/ frankenstein limbs and Excises mob icobase/deform so the organs handle it.

Fixes a bug w/ the first commit where frankenstein limbs got converted to the owner's appearance (icobase/deform) if the owner HAS_ICON_SKIN_TONE.
This commit is contained in:
KasparoVy
2017-02-14 21:39:40 -05:00
parent 6b50f16a12
commit 87aa937d8d
8 changed files with 49 additions and 28 deletions
@@ -241,8 +241,9 @@
var/mob/living/carbon/human/H = new
H.species = current_species
H.s_tone = s_tone
H.species.updatespeciescolor(H)
icobase = H.icobase ? H.icobase : H.species.icobase
H.species.updatespeciescolor(H, 0) //The mob's species wasn't set, so it's almost certainly different than the character's species at the moment. Thus, we need to be owner-insensitive.
var/obj/item/organ/external/chest/C = H.get_organ("chest")
icobase = C.icobase ? C.icobase : C.species.icobase
if(H.species.bodyflags & HAS_TAIL)
coloured_tail = H.tail ? H.tail : H.species.tail