From dab79a45d4a670bf08713f604c4a8286eebe05ed Mon Sep 17 00:00:00 2001 From: Silverplate <118299273+silverplatedelta@users.noreply.github.com> Date: Sat, 23 Aug 2025 23:32:54 -0400 Subject: [PATCH] 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> --- code/modules/events/alien_infestation.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/events/alien_infestation.dm b/code/modules/events/alien_infestation.dm index dabe6333156..0d8ec05ee2f 100644 --- a/code/modules/events/alien_infestation.dm +++ b/code/modules/events/alien_infestation.dm @@ -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()