mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-22 11:36:38 +01:00
Merge pull request #397 from Razgriz1032/Razgriz1032-mice-event
Evolving Mice event
This commit is contained in:
@@ -65,8 +65,8 @@
|
||||
vermin = rand(0,2)
|
||||
switch(vermin)
|
||||
if(VERM_MICE)
|
||||
spawn_types = list(/mob/living/simple_animal/mouse/gray, /mob/living/simple_animal/mouse/brown, /mob/living/simple_animal/mouse/white)
|
||||
max_number = 12
|
||||
spawn_types = list(/mob/living/simple_animal/mouse/event)
|
||||
max_number = 6
|
||||
vermstring = "mice"
|
||||
if(VERM_LIZARDS)
|
||||
spawn_types = list(/mob/living/simple_animal/lizard)
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
meat_type = /obj/item/weapon/reagent_containers/food/snacks/meat
|
||||
|
||||
var/body_color //brown, gray and white, leave blank for random
|
||||
|
||||
var/amount_grown = 0
|
||||
|
||||
/mob/living/simple_animal/mouse/Life()
|
||||
. = ..()
|
||||
if(!. || ai_inactive) return
|
||||
@@ -134,4 +135,44 @@
|
||||
name = initial(name)
|
||||
|
||||
/mob/living/simple_animal/mouse/cannot_use_vents()
|
||||
return
|
||||
return
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//EVENT mice that evolve into rats because exctement.
|
||||
/mob/living/simple_animal/mouse/event
|
||||
desc = "This one looks like it is growing huge!"
|
||||
|
||||
/mob/living/simple_animal/mouse/event/Life()
|
||||
. = ..()
|
||||
if(amount_grown >= 0)
|
||||
amount_grown += rand(0,2)
|
||||
if(amount_grown >= 100)
|
||||
rat()
|
||||
return
|
||||
|
||||
/mob/living/simple_animal/mouse/event/proc/rat()
|
||||
visible_message("<span class='warning'>\The [src] suddenly evolves!</span>")
|
||||
if(prob(99.5))
|
||||
new /mob/living/simple_animal/hostile/rat/event(get_turf(src))
|
||||
qdel(src)
|
||||
else
|
||||
new /mob/living/simple_animal/hostile/chungus(get_turf(src))
|
||||
qdel(src)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/mob/living/simple_animal/mouse/white/event
|
||||
|
||||
|
||||
/mob/living/simple_animal/mouse/gray/event
|
||||
|
||||
|
||||
/mob/living/simple_animal/mouse/brown/event
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
melee_damage_lower = 5
|
||||
melee_damage_upper = 15
|
||||
grab_resist = 100
|
||||
attack_sound = 'sound/weapons/bite.ogg'
|
||||
|
||||
speak_chance = 4
|
||||
speak = list("Eenhhhhhhh...","What's up, doc?","Wabbit season?")
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
melee_damage_lower = 5
|
||||
melee_damage_upper = 15
|
||||
grab_resist = 100
|
||||
attack_sound = 'sound/weapons/bite.ogg'
|
||||
|
||||
speak_chance = 4
|
||||
speak = list("Squeek!","SQUEEK!","Squeek?")
|
||||
@@ -157,3 +158,8 @@
|
||||
/mob/living/simple_animal/hostile/rat/death()
|
||||
playsound(src, 'sound/effects/mouse_squeak_loud.ogg', 50, 1)
|
||||
..()
|
||||
|
||||
/mob/living/simple_animal/hostile/rat/event
|
||||
maxHealth = 60
|
||||
health = 60
|
||||
vore_pounce_chance = 1
|
||||
Reference in New Issue
Block a user