Merge pull request #9268 from KasparoVy/althead-roboparts-fix

Fixes Head Robotization by Resetting alt_head and icon_name
This commit is contained in:
Fox McCloud
2018-07-28 03:11:19 -04:00
committed by GitHub
@@ -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)