From 2808e855b57e46f7294ee2a6d4b8af8f4ca67d36 Mon Sep 17 00:00:00 2001 From: keronshb Date: Mon, 6 Sep 2021 10:30:41 -0400 Subject: [PATCH] Explosive Pop fix --- .../modules/mob/living/simple_animal/hostile/plaguerat.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/plaguerat.dm b/code/modules/mob/living/simple_animal/hostile/plaguerat.dm index efec421e6d..fd4de815d3 100644 --- a/code/modules/mob/living/simple_animal/hostile/plaguerat.dm +++ b/code/modules/mob/living/simple_animal/hostile/plaguerat.dm @@ -11,8 +11,8 @@ gender = NEUTER speak_chance = 1 turns_per_move = 5 - maxHealth = 15 - health = 15 + maxHealth = 20 + health = 20 see_in_dark = 6 obj_damage = 10 butcher_results = list(/obj/item/reagent_containers/food/snacks/meat/slab = 1) @@ -34,7 +34,6 @@ mob_biotypes = MOB_ORGANIC|MOB_BEAST var/datum/action/cooldown/scavenge var/last_spawn_time = 0 - ///Number assigned to rats and mice, checked when determining infighting. /mob/living/simple_animal/hostile/plaguerat/Initialize() . = ..() @@ -66,9 +65,10 @@ playsound(src, 'sound/effects/sparks2.ogg', 100, TRUE) C.deconstruct() for(var/obj/O in range(1,src)) - if(istype(O, /obj/item/trash) || istype(O, /obj/effect/decal/cleanable/blood/gibs)) + if((world.time - last_spawn_time) > 10 SECONDS && istype(O, /obj/item/trash) || istype(O, /obj/effect/decal/cleanable/blood/gibs)) qdel(O) be_fruitful() + last_spawn_time = world.time /mob/living/simple_animal/hostile/plaguerat/CanAttack(atom/the_target) if(istype(the_target,/mob/living/simple_animal))