[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 <Fox-McCloud@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-03-03 03:02:12 +01:00
committed by GitHub
parent 635851ea79
commit 0741cd8979
3 changed files with 4 additions and 8 deletions
@@ -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"
@@ -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)
@@ -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)