Merge pull request #10057 from Ghommie/Ghommie-cit431

fixes on_mob eyes overlays not updating properly in certain cases.
This commit is contained in:
Lin
2019-12-07 21:49:18 +00:00
committed by GitHub
4 changed files with 27 additions and 17 deletions
+6 -2
View File
@@ -226,9 +226,13 @@
if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
return
if(new_eye_color)
H.eye_color = sanitize_hexcolor(new_eye_color)
var/n_color = sanitize_hexcolor(new_eye_color)
var/obj/item/organ/eyes/eyes = H.getorganslot(ORGAN_SLOT_EYES)
if(eyes)
eyes.eye_color = n_color
H.eye_color = n_color
H.dna.update_ui_block(DNA_EYE_COLOR_BLOCK)
H.update_body()
H.dna.species.handle_body()
if(choice)
curse(user)