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 e163eaf612.

* Comment

* Charlie review
This commit is contained in:
DGamerL
2024-08-18 01:31:13 +02:00
committed by GitHub
parent 3a3768bac3
commit 69a0848b0e
@@ -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)