Merge pull request #12658 from Kyep/mouse_squeak_fix

Dead mice squeak no tails
This commit is contained in:
Crazy Lemon
2020-02-06 21:53:10 -07:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
@@ -41,7 +41,7 @@
AddComponent(/datum/component/squeak, list('sound/creatures/mousesqueak.ogg' = 1), 100)
/mob/living/simple_animal/mouse/handle_automated_action()
if(prob(chew_probability))
if(prob(chew_probability) && isturf(loc))
var/turf/simulated/floor/F = get_turf(src)
if(istype(F) && !F.intact)
var/obj/structure/cable/C = locate() in F