Fixing some bug reports.

This commit is contained in:
Ghommie
2020-03-14 02:34:25 +01:00
parent 245b7ed306
commit 1d51ac5ff2
6 changed files with 30 additions and 19 deletions
@@ -64,22 +64,21 @@
..()
/mob/living/simple_animal/mouse/handle_automated_action()
if(isbelly(loc))
if(!prob(chew_probability) || !isturf(loc))
return
if(prob(chew_probability))
var/turf/open/floor/F = get_turf(src)
if(istype(F) && !F.intact)
var/obj/structure/cable/C = locate() in F
if(C && prob(15))
if(C.avail())
visible_message("<span class='warning'>[src] chews through the [C]. It's toast!</span>")
playsound(src, 'sound/effects/sparks2.ogg', 100, 1)
C.deconstruct()
death(toast=1)
else
C.deconstruct()
visible_message("<span class='warning'>[src] chews through the [C].</span>")
var/turf/open/floor/F = get_turf(src)
if(istype(F) && !F.intact)
var/obj/structure/cable/C = locate() in F
if(C && prob(15))
if(C.avail())
visible_message("<span class='warning'>[src] chews through the [C]. It's toast!</span>")
playsound(src, 'sound/effects/sparks2.ogg', 100, 1)
C.deconstruct()
death(toast=1)
else
C.deconstruct()
visible_message("<span class='warning'>[src] chews through the [C].</span>")
/*
* Mouse types