mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
use new proc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user