From d39f49001f63e4b5b16ec81d8ccb147bc2b370d9 Mon Sep 17 00:00:00 2001 From: Couls Date: Mon, 15 Jul 2019 21:13:14 -0400 Subject: [PATCH] use new proc --- .../mob/living/simple_animal/friendly/mouse.dm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index 498a7b87356..494d1e6cf2c 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -51,7 +51,7 @@ visible_message("[src] chews through [C]. It's toast!") playsound(src, 'sound/effects/sparks2.ogg', 100, 1) C.deconstruct() - death(0, 1) + toast() // mmmm toasty. else C.deconstruct() visible_message("[src] chews through [C].") @@ -113,14 +113,15 @@ to_chat(M, "[bicon(src)] Squeek!") ..() -/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