From ca71ab312b7b554c756e6ad87afc093ebe9876e4 Mon Sep 17 00:00:00 2001 From: Ty-Omaha Date: Sun, 27 Oct 2019 00:15:47 -0400 Subject: [PATCH] Xenomorph highpop spawn balance (#12508) --- 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 2d3cb8465c9..dd4eb3b6923 100644 --- a/code/modules/events/alien_infestation.dm +++ b/code/modules/events/alien_infestation.dm @@ -1,6 +1,8 @@ /datum/event/alien_infestation announceWhen = 400 + var/highpop_trigger = 80 var/spawncount = 2 + var/list/playercount var/successSpawn = 0 //So we don't make a command report if nothing gets spawned. /datum/event/alien_infestation/setup() @@ -12,6 +14,9 @@ /datum/event/alien_infestation/start() var/list/vents = list() + playercount = length(GLOB.clients)//grab playercount when event starts not when game starts + if(playercount >= highpop_trigger) //spawn with 4 if highpop + spawncount = 4 for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in world) if(is_station_level(temp_vent.loc.z) && !temp_vent.welded) if(temp_vent.parent.other_atmosmch.len > 50) //Stops Aliens getting stuck in small networks. See: Security, Virology