use new proc

This commit is contained in:
Couls
2019-07-15 21:13:14 -04:00
parent 0ec5e44bee
commit d39f49001f
@@ -51,7 +51,7 @@
visible_message("<span class='warning'>[src] chews through [C]. It's toast!</span>")
playsound(src, 'sound/effects/sparks2.ogg', 100, 1)
C.deconstruct()
death(0, 1)
toast() // mmmm toasty.
else
C.deconstruct()
visible_message("<span class='warning'>[src] chews through [C].</span>")
@@ -113,14 +113,15 @@
to_chat(M, "<span class='notice'>[bicon(src)] Squeek!</span>")
..()
/mob/living/simple_animal/mouse/death(gibbed, toast)
/mob/living/simple_animal/mouse/proc/toast()
add_atom_colour("#3A3A3A", FIXED_COLOUR_PRIORITY)
desc = "It's toast."
death()
/mob/living/simple_animal/mouse/death(gibbed)
// Only execute the below if we successfully died
playsound(src, squeak_sound, 40, 1)
. = ..(gibbed)
if(!gibbed)
if(toast)
add_atom_colour("#3A3A3A", FIXED_COLOUR_PRIORITY)
desc = "It's toast."
if(!.)
return FALSE
layer = MOB_LAYER