From 0741cd8979fef8275ff26fad2c5602e23aee5f3e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:02:12 +0100 Subject: [PATCH] [MIRROR] Refactors A few Simple Mob Footsteps + Fixes Slime Footsteps (#3778) * Refactors A few Simple Mob Footsteps + Fixes Slime Footsteps (#57261) * Refactors A few Simple Mob Footsteps + Fixes Slime Footsteps Co-authored-by: Fox McCloud --- code/modules/mob/living/simple_animal/hostile/alien.dm | 5 +---- code/modules/mob/living/simple_animal/hostile/ooze.dm | 4 +--- code/modules/mob/living/simple_animal/slime/slime.dm | 3 ++- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/alien.dm b/code/modules/mob/living/simple_animal/hostile/alien.dm index c0d01a722b3..200d76e76c3 100644 --- a/code/modules/mob/living/simple_animal/hostile/alien.dm +++ b/code/modules/mob/living/simple_animal/hostile/alien.dm @@ -33,10 +33,7 @@ gold_core_spawnable = NO_SPAWN deathsound = 'sound/voice/hiss6.ogg' deathmessage = "lets out a waning guttural screech, green blood bubbling from its maw..." - -/mob/living/simple_animal/hostile/alien/Initialize() - . = ..() - AddComponent(/datum/component/footstep, FOOTSTEP_MOB_CLAW) + footstep_type = FOOTSTEP_MOB_CLAW /mob/living/simple_animal/hostile/alien/drone name = "alien drone" diff --git a/code/modules/mob/living/simple_animal/hostile/ooze.dm b/code/modules/mob/living/simple_animal/hostile/ooze.dm index 74f94f93303..5df93518d4b 100644 --- a/code/modules/mob/living/simple_animal/hostile/ooze.dm +++ b/code/modules/mob/living/simple_animal/hostile/ooze.dm @@ -26,7 +26,7 @@ environment_smash = ENVIRONMENT_SMASH_STRUCTURES mob_size = MOB_SIZE_LARGE initial_language_holder = /datum/language_holder/slime - + footstep_type = FOOTSTEP_MOB_SLIME ///Oozes have their own nutrition. Changes based on them eating var/ooze_nutrition = 50 var/ooze_nutrition_loss = -0.15 @@ -36,8 +36,6 @@ . = ..() create_reagents(300) add_cell_sample() - AddComponent(/datum/component/footstep, FOOTSTEP_MOB_SLIME, 0) - ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) /mob/living/simple_animal/hostile/ooze/attacked_by(obj/item/I, mob/living/user) diff --git a/code/modules/mob/living/simple_animal/slime/slime.dm b/code/modules/mob/living/simple_animal/slime/slime.dm index 3c304361db1..441b2cc6e5a 100644 --- a/code/modules/mob/living/simple_animal/slime/slime.dm +++ b/code/modules/mob/living/simple_animal/slime/slime.dm @@ -40,6 +40,8 @@ // for the sake of cleanliness, though, here they are. status_flags = CANUNCONSCIOUS|CANPUSH + footstep_type = FOOTSTEP_MOB_SLIME + var/cores = 1 // the number of /obj/item/slime_extract's the slime has left inside var/mutation_chance = 30 // Chance of mutating, should be between 25 and 35 @@ -101,7 +103,6 @@ set_colour(new_colour) . = ..() set_nutrition(700) - AddComponent(/datum/component/footstep, FOOTSTEP_MOB_SLIME, 0) add_cell_sample() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT)