Files
vgstation13/code/modules/events/carp_migration.dm
madmanmartian 6b346c92b0 Makes event population done via a function
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)
2019-08-31 01:41:00 +01:00

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