From 1ac4a75cf4eabb2a48c087da51019dacad63b67c Mon Sep 17 00:00:00 2001
From: Doxxmedearly <38594443+Doxxmedearly@users.noreply.github.com>
Date: Sun, 15 Mar 2020 20:40:56 -0500
Subject: [PATCH] Husk repair fixes (#8450)
---
code/modules/surgery/facial_surgery.dm | 5 ++++-
html/changelogs/doxxmedearly - husk.yml | 9 +++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
create mode 100644 html/changelogs/doxxmedearly - husk.yml
diff --git a/code/modules/surgery/facial_surgery.dm b/code/modules/surgery/facial_surgery.dm
index 276c1b8bccb..06f9a603b5f 100644
--- a/code/modules/surgery/facial_surgery.dm
+++ b/code/modules/surgery/facial_surgery.dm
@@ -69,6 +69,7 @@
if(head.disfigured || (HUSK in target.mutations))
head.disfigured = FALSE
target.mutations.Remove(HUSK)
+ target.update_body()
user.visible_message("[user] successfully restores [target]'s appearance!", "You successfully restore [target]'s appearance.")
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)
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
+ target.mutations.Remove(HUSK)
+ target.update_body()
user.visible_message("[user] successfully restores [target]'s appearance!", "You successfully restore [target]'s appearance.")
var/getName = sanitize(input(user, "What is your patient's new identity?", "Name change") as null|text, MAX_NAME_LEN)
diff --git a/html/changelogs/doxxmedearly - husk.yml b/html/changelogs/doxxmedearly - husk.yml
new file mode 100644
index 00000000000..2c7639e1dd9
--- /dev/null
+++ b/html/changelogs/doxxmedearly - husk.yml
@@ -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."