From 4d7573b09f4d05eb9f5832ff7e5e0555f967e704 Mon Sep 17 00:00:00 2001 From: Razgriz Date: Tue, 16 Jul 2019 00:03:24 -0700 Subject: [PATCH] Metroid Queen fix --- .../simple_animal/vore/metroidsSimple.dm | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/code/modules/mob/living/simple_animal/vore/metroidsSimple.dm b/code/modules/mob/living/simple_animal/vore/metroidsSimple.dm index 8ee83af0e7..31723d9974 100644 --- a/code/modules/mob/living/simple_animal/vore/metroidsSimple.dm +++ b/code/modules/mob/living/simple_animal/vore/metroidsSimple.dm @@ -617,7 +617,7 @@ var/global/list/queen_amount = 0 //We only gonna want 1 queen in the world. /mob/living/simple_animal/hostile/metroid/combat/queen name = "queen metroid" - desc = "The mother of all Metroids, allowed to have grown too far!" + desc = "The mother of all Metroids - allowed to have grown too far!" tt_desc = "Maximus Queenamus Deathamus" icon = 'icons/mob/metroid/queen.dmi' icon_dead = "queen_dead" @@ -1135,19 +1135,7 @@ var/global/list/queen_amount = 0 //We only gonna want 1 queen in the world. paralysis = 0 expand_troid() - if(stance == 7) //Necessary to fix a bug where if their prey or latching victim is laying down when they evolve, they get stuck in stance 7 and do nothing. - stance = 4 - return - - - - - - -/mob/living/simple_animal/hostile/metroid/combat/queen/Life() - . = ..() - var/obj/effect/metroid/egg/E = locate() in get_turf(src) - if(canEvolve == 1 && nutrition >= evo_point && !E) + else if(next == null && canEvolve == 1 && nutrition >= evo_point) playsound(src, 'sound/metroid/metroidgrow.ogg', 50, 1) src.visible_message("\The [src] begins to lay an egg.") stop_automated_movement = 1 @@ -1156,9 +1144,14 @@ var/global/list/queen_amount = 0 //We only gonna want 1 queen in the world. stop_automated_movement = 0 nutrition = 400 return + + if(stance == 7) //Necessary to fix a bug where if their prey or latching victim is laying down when they evolve, they get stuck in stance 7 and do nothing. + stance = 4 + return + /mob/living/simple_animal/hostile/metroid/combat/proc/adjust_nutrition(input) nutrition = (nutrition + input) //It handles the metroid's nutrition gain from melee.