/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/events/carp_migration.dm
29 строк
815 B
jwhitak
Several Events Which Shouldn’t Fire During Deadpop Will No Longer Fire During Deadpop (#35222)
30 окт 2023, 04:38
Не верифицирован
30 окт 2023, 04:38
240f373
Код
Авторство
О чём код?
/datum/event/carp_migration announceWhen = 20 endWhen = 450 var/list/spawned_carp = list() /datum/event/carp_migration/can_start(var/list/active_with_role) if(active_with_role["Any"] > 6) return 40 return 0 /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_NULL(C)