mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Adds event whitelists and event blacklists per-map. so you can make it so that certain events can not fire on a map. PoC is blizzards on all maps, and the radiation storm on snaxi (as requested by Plosky)
29 lines
754 B
Plaintext
29 lines
754 B
Plaintext
/datum/event/carp_migration
|
|
announceWhen = 20
|
|
endWhen = 450
|
|
var/list/spawned_carp = list()
|
|
|
|
/datum/event/carp_migration/can_start()
|
|
return 40
|
|
|
|
/datum/event/carp_migration/setup()
|
|
announceWhen = rand(15, 30)
|
|
endWhen = rand(600,1200)
|
|
|
|
/datum/event/carp_migration/announce()
|
|
command_alert(/datum/command_alert/carp)
|
|
|
|
/datum/event/carp_migration/start()
|
|
for(var/obj/effect/landmark/C in landmarks_list)
|
|
if(C.name == "carpspawn")
|
|
if(prob(90)) //Give it a sliver of randomness
|
|
spawned_carp.Add(new /mob/living/simple_animal/hostile/carp(C.loc))
|
|
|
|
/datum/event/carp_migration/end()
|
|
for(var/mob/living/simple_animal/hostile/carp/C in spawned_carp)
|
|
if(!C.stat)
|
|
var/turf/T = get_turf(C)
|
|
if(istype(T, /turf/space))
|
|
qdel(C)
|
|
C = null
|