Xenos cant roll under 50 crew (#30041)

* Xenos cant roll under 50 crew

* Timing define

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: Silverplate <118299273+silverplatedelta@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Signed-off-by: Silverplate <118299273+silverplatedelta@users.noreply.github.com>

---------

Signed-off-by: Silverplate <118299273+silverplatedelta@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
Silverplate
2025-08-24 03:32:54 +00:00
committed by GitHub
co-authored by Burzah PollardTheDragon
parent 42d07892c9
commit dab79a45d4
+5
View File
@@ -18,6 +18,11 @@
playercount = length(GLOB.clients)//grab playercount when event starts not when game starts
if(playercount >= highpop_trigger) //spawn with 4 if highpop
spawncount = 4
if(length(GLOB.crew_list) < 50) // manifest must have 50 crew to roll
// if xenos dont roll due to pop, try again to roll for a major in 60 seconds
var/datum/event_container/EC = SSevents.event_containers[EVENT_LEVEL_MAJOR]
EC.next_event_time = world.time + 1 MINUTES
return
INVOKE_ASYNC(src, PROC_REF(spawn_xenos))
/datum/event/alien_infestation/proc/spawn_xenos()