mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-09 23:21:02 +01:00
The boom mouse beckons
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user