From ab7240f425dc3ccf27864b9833cb8f0d5afe6e91 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 11 Sep 2020 23:03:22 +0200 Subject: [PATCH] [MIRROR] fixes a copy+paste error in synthcode (#738) * fixes a copy+paste error in synthcode (#53573) handle_body() was called when handle_mutant_bodyparts() should have been called instead. I've fixed this issue. I've also doc'd the disguise_fail_health variable, because the comment that's currently next to it doesn't accurately describe what the variable actually does. * fixes a copy+paste error in synthcode Co-authored-by: ATH1909 <42606352+ATH1909@users.noreply.github.com> --- code/modules/mob/living/carbon/human/species_types/synths.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/species_types/synths.dm b/code/modules/mob/living/carbon/human/species_types/synths.dm index 86effae9c1b..ee181800ef3 100644 --- a/code/modules/mob/living/carbon/human/species_types/synths.dm +++ b/code/modules/mob/living/carbon/human/species_types/synths.dm @@ -9,7 +9,8 @@ meat = null damage_overlay_type = "synth" limbs_id = "synth" - var/disguise_fail_health = 75 //When their health gets to this level their synthflesh partially falls off + ///If your health becomes equal to or less than this value, your disguise is supposed to break. Unfortunately, that feature currently isn't implemented, so currently, all this threshold is used for is (I kid you not) determining whether or not your speech uses SPAN_CLOWN while you're disguised as a bananium golem. See the handle_speech() proc further down in this file for more information on that check. + var/disguise_fail_health = 75 var/datum/species/fake_species //a species to do most of our work for us, unless we're damaged var/list/initial_species_traits //for getting these values back for assume_disguise() var/list/initial_inherent_traits @@ -117,7 +118,7 @@ /datum/species/synth/handle_mutant_bodyparts(mob/living/carbon/human/H, forced_colour) if(fake_species) - fake_species.handle_body(H,forced_colour) + fake_species.handle_mutant_bodyparts(H,forced_colour) else return ..()