From d5bd6777aba1616eb966f4fdff259f1adadc0949 Mon Sep 17 00:00:00 2001 From: Maurukas <66576896+Maurukas@users.noreply.github.com> Date: Fri, 3 Jul 2020 09:27:53 -0700 Subject: [PATCH] aheals, suggested logic cleanup --- .../mob/living/carbon/human/species_types/mothmen.dm | 9 +++++++++ code/modules/surgery/advanced/wingreconstruction.dm | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/species_types/mothmen.dm b/code/modules/mob/living/carbon/human/species_types/mothmen.dm index bf503cd9710..c28fa0768e0 100644 --- a/code/modules/mob/living/carbon/human/species_types/mothmen.dm +++ b/code/modules/mob/living/carbon/human/species_types/mothmen.dm @@ -72,3 +72,12 @@ var/datum/gas_mixture/current = H.loc.return_air() if(current && (current.return_pressure() >= ONE_ATMOSPHERE*0.85)) //as long as there's reasonable pressure and no gravity, flight is possible return TRUE + + +/datum/species/moth/spec_fully_heal(mob/living/carbon/human/H) + . = ..() + if(H.dna.features["original_moth_wings"] != null) + H.dna.features["moth_wings"] = H.dna.features["original_moth_wings"] + if(H.dna.features["original_moth_wings"] == null && H.dna.features["moth_wings"] == "Burnt Off") + H.dna.features["moth_wings"] = "Plain" + handle_mutant_bodyparts(H) diff --git a/code/modules/surgery/advanced/wingreconstruction.dm b/code/modules/surgery/advanced/wingreconstruction.dm index 49608f954d6..6ae7255f4e9 100644 --- a/code/modules/surgery/advanced/wingreconstruction.dm +++ b/code/modules/surgery/advanced/wingreconstruction.dm @@ -31,7 +31,7 @@ "[user] completes the surgery on [target]'s wings.") if(H.dna.features["original_moth_wings"] != null) H.dna.features["moth_wings"] = H.dna.features["original_moth_wings"] - if(H.dna.features["original_moth_wings"] == null) + else H.dna.features["moth_wings"] = "Plain" H.update_mutant_bodyparts() return ..()