Husk repair fixes (#8450)

This commit is contained in:
Doxxmedearly
2020-03-15 20:40:56 -05:00
committed by GitHub
parent 92b4d040c2
commit 1ac4a75cf4
2 changed files with 13 additions and 1 deletions

View File

@@ -69,6 +69,7 @@
if(head.disfigured || (HUSK in target.mutations)) if(head.disfigured || (HUSK in target.mutations))
head.disfigured = FALSE head.disfigured = FALSE
target.mutations.Remove(HUSK) target.mutations.Remove(HUSK)
target.update_body()
user.visible_message("[user] successfully restores [target]'s appearance!", "<span class='notice'>You successfully restore [target]'s appearance.</span>") user.visible_message("[user] successfully restores [target]'s appearance!", "<span class='notice'>You successfully restore [target]'s appearance.</span>")
var/getName = sanitize(input(user, "What is your patient's new identity?", "Name change") as null|text, MAX_NAME_LEN) var/getName = sanitize(input(user, "What is your patient's new identity?", "Name change") as null|text, MAX_NAME_LEN)
@@ -208,8 +209,10 @@
/datum/surgery_step/robotics/face/alter_synthface/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) /datum/surgery_step/robotics/face/alter_synthface/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/head/head = target.get_organ(target_zone) var/obj/item/organ/external/head/head = target.get_organ(target_zone)
if(head.disfigured) if(head.disfigured || (HUSK in target.mutations))
head.disfigured = FALSE head.disfigured = FALSE
target.mutations.Remove(HUSK)
target.update_body()
user.visible_message("[user] successfully restores [target]'s appearance!", "<span class='notice'>You successfully restore [target]'s appearance.</span>") user.visible_message("[user] successfully restores [target]'s appearance!", "<span class='notice'>You successfully restore [target]'s appearance.</span>")
var/getName = sanitize(input(user, "What is your patient's new identity?", "Name change") as null|text, MAX_NAME_LEN) var/getName = sanitize(input(user, "What is your patient's new identity?", "Name change") as null|text, MAX_NAME_LEN)

View File

@@ -0,0 +1,9 @@
# Your name.
author: Doxxmedearly
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Plastic surgery should now properly update sprites when fixing a husked individual. This should now work for shells, as well."