From c5b7087d257ac2336494998bf5ca7959f5c30a29 Mon Sep 17 00:00:00 2001 From: Razgriz Date: Fri, 15 Feb 2019 03:55:34 -0700 Subject: [PATCH 1/6] Mouse update Adds new "event" mice that evolve into more dangerous rats! --- .../mob/living/simple_animal/animals/mouse.dm | 45 ++++++++++++++++++- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/animals/mouse.dm b/code/modules/mob/living/simple_animal/animals/mouse.dm index 7998fb6229..4621bc908f 100644 --- a/code/modules/mob/living/simple_animal/animals/mouse.dm +++ b/code/modules/mob/living/simple_animal/animals/mouse.dm @@ -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 \ No newline at end of file + 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("\The [src] suddenly evolves!") + if(prob(99.5)) + new /mob/living/simple_animal/hostile/rat(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 + From ce1ac396ff8ea78e37957d770d32cb7b568bc6b1 Mon Sep 17 00:00:00 2001 From: Razgriz Date: Fri, 15 Feb 2019 03:57:21 -0700 Subject: [PATCH 2/6] Evolving Mice event Replaces the incredibly boring and mundane mice station event with mice that will evolve, demanding a bit more attention. --- code/modules/events/infestation.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/events/infestation.dm b/code/modules/events/infestation.dm index 540e301efb..2f3b8aeeee 100644 --- a/code/modules/events/infestation.dm +++ b/code/modules/events/infestation.dm @@ -65,7 +65,7 @@ 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) + spawn_types = list(/mob/living/simple_animal/mouse/event) max_number = 12 vermstring = "mice" if(VERM_LIZARDS) From 9a69490a185dcb25d99b9a9680177f5f1144925c Mon Sep 17 00:00:00 2001 From: Razgriz Date: Fri, 15 Feb 2019 03:58:38 -0700 Subject: [PATCH 3/6] Add bite sfx to attack --- code/modules/mob/living/simple_animal/vore/chungus.dm | 1 + code/modules/mob/living/simple_animal/vore/rat.dm | 1 + 2 files changed, 2 insertions(+) diff --git a/code/modules/mob/living/simple_animal/vore/chungus.dm b/code/modules/mob/living/simple_animal/vore/chungus.dm index aca60f0e7e..72da3f801f 100644 --- a/code/modules/mob/living/simple_animal/vore/chungus.dm +++ b/code/modules/mob/living/simple_animal/vore/chungus.dm @@ -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?") diff --git a/code/modules/mob/living/simple_animal/vore/rat.dm b/code/modules/mob/living/simple_animal/vore/rat.dm index 75d201699d..c46e3aa468 100644 --- a/code/modules/mob/living/simple_animal/vore/rat.dm +++ b/code/modules/mob/living/simple_animal/vore/rat.dm @@ -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?") From c80789d45c4772bfa0ce127ff020d41f8d8fdfe6 Mon Sep 17 00:00:00 2001 From: Razgriz Date: Fri, 15 Feb 2019 15:24:30 -0700 Subject: [PATCH 4/6] Event mice morph into weaker rat --- code/modules/mob/living/simple_animal/animals/mouse.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/animals/mouse.dm b/code/modules/mob/living/simple_animal/animals/mouse.dm index 4621bc908f..cbd674630c 100644 --- a/code/modules/mob/living/simple_animal/animals/mouse.dm +++ b/code/modules/mob/living/simple_animal/animals/mouse.dm @@ -157,7 +157,7 @@ /mob/living/simple_animal/mouse/event/proc/rat() visible_message("\The [src] suddenly evolves!") if(prob(99.5)) - new /mob/living/simple_animal/hostile/rat(get_turf(src)) + new /mob/living/simple_animal/hostile/rat/event(get_turf(src)) qdel(src) else new /mob/living/simple_animal/hostile/chungus(get_turf(src)) From a46b89ff5c37b033e9ac9774d63b552875984d02 Mon Sep 17 00:00:00 2001 From: Razgriz Date: Fri, 15 Feb 2019 15:26:17 -0700 Subject: [PATCH 5/6] Created nerfed rat for evolving mouse event -Health decreased to 60 from 150 -Vore knockdown chance decreased to 1% from 45% Other rat variants remain unchanged. --- code/modules/mob/living/simple_animal/vore/rat.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/simple_animal/vore/rat.dm b/code/modules/mob/living/simple_animal/vore/rat.dm index c46e3aa468..d471977946 100644 --- a/code/modules/mob/living/simple_animal/vore/rat.dm +++ b/code/modules/mob/living/simple_animal/vore/rat.dm @@ -158,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 \ No newline at end of file From 8f6073281cddac260e6f6079642b0ad5dae10f33 Mon Sep 17 00:00:00 2001 From: Razgriz Date: Fri, 15 Feb 2019 15:27:30 -0700 Subject: [PATCH 6/6] Decreased mice max spawn Mice max spawn decreased to 6 from 12. --- code/modules/events/infestation.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/events/infestation.dm b/code/modules/events/infestation.dm index 2f3b8aeeee..5f3a85e15c 100644 --- a/code/modules/events/infestation.dm +++ b/code/modules/events/infestation.dm @@ -66,7 +66,7 @@ switch(vermin) if(VERM_MICE) spawn_types = list(/mob/living/simple_animal/mouse/event) - max_number = 12 + max_number = 6 vermstring = "mice" if(VERM_LIZARDS) spawn_types = list(/mob/living/simple_animal/lizard)