mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-13 18:33:22 +00:00
Reduces the lava event from "lets slay all idlers and stop all action for 2 minutes" to "lets greviously wound all idlers and stop all action for 30 seconds" Makes summon magic/summon guns work fine without a mob attached, this prevents a runtime and some odd messages to the admins Makes the inviciblity text jive better.
17 lines
747 B
Plaintext
17 lines
747 B
Plaintext
/datum/round_event_control/wizard/petsplosion //the horror
|
|
name = "Petsplosion"
|
|
weight = 2
|
|
typepath = /datum/round_event/wizard/petsplosion/
|
|
max_occurrences = 1 //Exponential growth is nothing to sneeze at!
|
|
earliest_start = 0
|
|
|
|
/datum/round_event/wizard/petsplosion/
|
|
endWhen = 61 //1 minute (+1 tick for endWhen not to interfere with tick)
|
|
var/countdown = 0
|
|
|
|
/datum/round_event/wizard/petsplosion/tick()
|
|
if(activeFor >= 30 * countdown) // 0 seconds : 2 animals | 30 seconds : 4 animals | 1 minute : 8 animals
|
|
countdown += 1
|
|
for(var/mob/living/simple_animal/F in living_mob_list) //If you cull the heard before the next replication, things will be easier for you
|
|
if(!istype(F, /mob/living/simple_animal/hostile))
|
|
new F.type(F.loc) |