mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-09 00:52:09 +00:00
27 lines
832 B
Plaintext
27 lines
832 B
Plaintext
/datum/event/carp_migration
|
|
announceWhen = 50
|
|
endWhen = 900
|
|
var/list/spawned_carp = list()
|
|
|
|
/datum/event/carp_migration/setup()
|
|
announceWhen = rand(40, 60)
|
|
endWhen = rand(600,1200)
|
|
|
|
/datum/event/carp_migration/announce()
|
|
command_announcement.Announce("Unknown biological entities have been detected near [station_name()], please stand-by.", "Lifesign Alert")
|
|
|
|
/datum/event/carp_migration/start()
|
|
for(var/obj/effect/landmark/C in landmarks_list)
|
|
if(C.name == "carpspawn")
|
|
if(prob(95))
|
|
new /mob/living/simple_animal/hostile/carp(C.loc)
|
|
else
|
|
new /mob/living/simple_animal/hostile/carp/megacarp(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)
|