From 0843a221bfe6f5912ac8cfd2bd72ac25058c83c4 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 17 Aug 2022 18:15:54 +0200 Subject: [PATCH] [MIRROR] Stops rats spawning two every time they die. [MDB IGNORE] (#15669) * Stops rats spawning two every time they die. (#69223) * Stops rats spawning two every time they die. Co-authored-by: necromanceranne <40847847+necromanceranne@users.noreply.github.com> --- code/modules/mob/living/simple_animal/hostile/regalrat.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/regalrat.dm b/code/modules/mob/living/simple_animal/hostile/regalrat.dm index ef8f069229f..58732c92059 100644 --- a/code/modules/mob/living/simple_animal/hostile/regalrat.dm +++ b/code/modules/mob/living/simple_animal/hostile/regalrat.dm @@ -315,7 +315,9 @@ var/obj/item/food/deadmouse/mouse = new(loc) mouse.icon_state = icon_dead mouse.name = name - SSmobs.cheeserats -= src // remove rats on death + qdel(src) + else + SSmobs.cheeserats -= src // remove rats on death return ..() /mob/living/simple_animal/hostile/rat/revive(full_heal = FALSE, admin_revive = FALSE)