The boom mouse beckons

This commit is contained in:
Archie
2021-01-12 22:56:17 -03:00
parent 315018241d
commit ebee3bae26
2 changed files with 29 additions and 0 deletions
@@ -37,6 +37,11 @@
icon_state = "mouse_[body_color]"
icon_living = "mouse_[body_color]"
icon_dead = "mouse_[body_color]_dead"
if(name == "mouse") // Faster than checking for mobtypes, just checks if this mouse is a generic mouse.
if(prob(2)) //2% chance to turn a generic mouse into a boommouse
message_admins("One mouse turned into boom mouse!")
new /mob/living/simple_animal/mouse/boommouse(src.loc)
qdel(src)
/mob/living/simple_animal/mouse/proc/splat()
src.health = 0
@@ -121,3 +126,27 @@
/obj/item/reagent_containers/food/snacks/deadmouse/on_grind()
reagents.clear_reagents()
/mob/living/simple_animal/mouse/boommouse
name = "boommouse"
desc = "A mutated rat with a pack of... Plasma on its back? I wouldn't really touch it if I were you."
icon = 'icons/mob/animal.dmi'
icon_state = "mouse_brown"
icon_living = "mouse_brown"
icon_dead = "mouse_brown_dead"
see_in_dark = 12
maxHealth = 7
health = 7
/mob/living/simple_animal/mouse/boommouse/Initialize()
. = ..()
//Force icons because mouse/initialize randomizes them
icon = 'hyperstation/icons/mob/animal.dmi'
icon_state = "mouse_plasma"
icon_living = "mouse_plasma"
icon_dead = "mouse_plasma" //No need for a dead sprite since it qdels itself on death
/mob/living/simple_animal/mouse/boommouse/death(gibbed, toast)
visible_message("<span class='danger'>The boomrat violently explodes!</span>")
atmos_spawn_air("plasma=15;TEMP=500")
explosion(src.loc, 0, 1, 2, 0, 1, 0, 2, 0, 0)
qdel(src)
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB