From 69a0848b0eaf0cc55e3e7c1eada8cf88dae29254 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Sun, 18 Aug 2024 01:31:13 +0200 Subject: [PATCH] Stops mice from eating cables during CI (#26496) * Stops mice from eating cables during CI * WE TEST CI WITH THIS ONE * Revert "WE TEST CI WITH THIS ONE" This reverts commit e163eaf6121a9a5c667950ab099261ae274cf7c4. * Comment * Charlie review --- code/modules/mob/living/simple_animal/friendly/mouse.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index 04ba1742b51..ae48d73f78b 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -43,6 +43,9 @@ AddComponent(/datum/component/squeak, list('sound/creatures/mousesqueak.ogg' = 1), 100, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) //as quiet as a mouse or whatever /mob/living/simple_animal/mouse/handle_automated_action() +#ifdef UNIT_TESTS // DO NOT EAT MY CABLES DURING UNIT TESTS + return +#endif if(prob(chew_probability) && isturf(loc)) var/turf/simulated/floor/F = get_turf(src) if(istype(F) && !F.intact)