From 05df7b380bfa65939fa1be64bc33e02e0351a426 Mon Sep 17 00:00:00 2001 From: TalkingCactus Date: Fri, 20 Oct 2023 20:05:43 -0400 Subject: [PATCH] fixes skitter rat destroy --- code/modules/mob/living/simple_animal/hostile/regalrat.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/regalrat.dm b/code/modules/mob/living/simple_animal/hostile/regalrat.dm index fe7e27a5282..d6cadc0ae95 100644 --- a/code/modules/mob/living/simple_animal/hostile/regalrat.dm +++ b/code/modules/mob/living/simple_animal/hostile/regalrat.dm @@ -198,6 +198,8 @@ desc_short = "Squeak!" pop_required_to_jump_into = 0 var/is_smol = FALSE + /// If not cheesy, don't add to the cheeserats list + var/cheesy = FALSE variation_list = list( MOB_SPEED_LIST(1.5, 1.8, 2.0), @@ -247,7 +249,8 @@ /mob/living/simple_animal/hostile/rat/Initialize() . = ..() - // SSmobs.cheeserats += src + if(cheesy) + SSmobs.cheeserats += src AddComponent(/datum/component/swarming) AddElement(/datum/element/mob_holder, "mouse_gray") if(!is_smol) @@ -319,7 +322,8 @@ . = ..() /mob/living/simple_animal/hostile/rat/Destroy() - SSmobs.cheeserats -= src + if(cheesy) + SSmobs.cheeserats -= src return ..() /mob/living/simple_animal/hostile/rat/examine(mob/user)