Skip to content

Commit

Permalink
Merge pull request #3530 from TalkingCactus/skitterers
Browse files Browse the repository at this point in the history
fixes skitter rat destroy
  • Loading branch information
Tk420634 authored Oct 21, 2023
2 parents 5f411af + 05df7b3 commit 88c411e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions code/modules/mob/living/simple_animal/hostile/regalrat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 88c411e

Please sign in to comment.