From aea44cd545b91b5943d2a0f5c826492c38d3af92 Mon Sep 17 00:00:00 2001 From: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Date: Fri, 18 Dec 2020 03:07:41 -0800 Subject: [PATCH] Prevents simple animals from creating/destroying 1 footstep component per process (#55599) --- code/modules/mob/living/simple_animal/simple_animal.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 7563edab6e5..a92f23d1425 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -191,6 +191,8 @@ atmos_requirements = string_assoc_list(atmos_requirements) if(damage_coeff) damage_coeff = string_assoc_list(damage_coeff) + if(footstep_type) + AddComponent(/datum/component/footstep, footstep_type) /mob/living/simple_animal/Life() . = ..() @@ -246,8 +248,6 @@ else set_stat(CONSCIOUS) med_hud_set_status() - if(footstep_type) - AddComponent(/datum/component/footstep, footstep_type) /mob/living/simple_animal/handle_status_effects() ..()