Fixes Head Robotization by Resetting alt_head and icon_name

Fixes issues robotizing the heads of mobs with alt_heads by resetting the alt_head and icon_name for sanity.
This commit is contained in:
KasparoVy
2018-07-28 00:01:09 -04:00
parent 96808768e9
commit c8f04a86f4
@@ -202,7 +202,6 @@
/obj/item/organ/external/head/replaced()
name = limb_name
..()
/obj/item/organ/external/head/receive_damage(brute, burn, sharp, used_weapon = null, list/forbidden_limbs = list(), ignore_resists = FALSE)
@@ -222,6 +221,11 @@
alt_head = initial(alt_head)
icon_name = initial(icon_name)
/obj/item/organ/external/head/robotize(company, make_tough = 0, convert_all = 1) //Undoes alt_head business to avoid getting in the way of robotization. Make sure we pass all args down the line...
alt_head = initial(alt_head)
icon_name = initial(icon_name)
..()
/obj/item/organ/external/head/set_dna(datum/dna/new_dna)
..()
new_dna.write_head_attributes(src)