From d05bf18f84b0570a7b5fd576e8ccaa4d7c0d4cc7 Mon Sep 17 00:00:00 2001 From: Farie82 Date: Thu, 1 Dec 2022 08:39:16 +0100 Subject: [PATCH] Adds var back which dissalows double bursting (#19814) --- code/modules/mob/living/simple_animal/friendly/mouse.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index d061b272ec9..13d1906c27a 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -164,6 +164,7 @@ atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0) minbodytemp = 0 gold_core_spawnable = NO_SPAWN + var/bursted = FALSE /mob/living/simple_animal/mouse/blobinfected/Initialize(mapload) . = ..() @@ -176,10 +177,13 @@ /mob/living/simple_animal/mouse/blobinfected/death(gibbed) . = ..(gibbed) - if(.) // Avoids a double burst due to the gib call in burst + if(.) // Only burst if they actually died burst(gibbed) /mob/living/simple_animal/mouse/blobinfected/proc/burst(gibbed) + if(bursted) + return // Avoids double bursting in some situations + bursted = TRUE var/turf/T = get_turf(src) if(!is_station_level(T.z) || isspaceturf(T)) to_chat(src, "You feel ready to burst, but this isn't an appropriate place! You must return to the station!")