From 8a92a1409c8dde79e082e99b66cf648c03f09536 Mon Sep 17 00:00:00 2001 From: forestbbbbbbb <136390975+forestbbbbbbb@users.noreply.github.com> Date: Wed, 20 Sep 2023 20:07:05 +0000 Subject: [PATCH] Fix xeno spawns not counting towards autobalance (#13973) --- .../mob/living/carbon/xenomorph/evolution.dm | 2 ++ .../mob/living/carbon/xenomorph/xenoupgrade.dm | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/xenomorph/evolution.dm b/code/modules/mob/living/carbon/xenomorph/evolution.dm index 137fa9367c447..3bc686cd7f2c8 100644 --- a/code/modules/mob/living/carbon/xenomorph/evolution.dm +++ b/code/modules/mob/living/carbon/xenomorph/evolution.dm @@ -172,6 +172,8 @@ SSmonitor.stats.primo_T2-- if(XENO_TIER_THREE) SSmonitor.stats.primo_T3-- + if(XENO_TIER_FOUR) + SSmonitor.stats.primo_T4-- new_xeno.upgrade_stored = max(upgrade_stored, new_xeno.upgrade_stored) while(new_xeno.upgrade_possible() && new_xeno.upgrade_stored >= new_xeno.xeno_caste.upgrade_threshold) diff --git a/code/modules/mob/living/carbon/xenomorph/xenoupgrade.dm b/code/modules/mob/living/carbon/xenomorph/xenoupgrade.dm index 966cf44ea0311..35681872e6a08 100644 --- a/code/modules/mob/living/carbon/xenomorph/xenoupgrade.dm +++ b/code/modules/mob/living/carbon/xenomorph/xenoupgrade.dm @@ -47,8 +47,22 @@ current_aura.strength = xeno_caste.aura_strength switch(upgrade) - //PURCHASED UPGRADE + if(XENO_UPGRADE_NORMAL) + switch(tier) + if(XENO_TIER_TWO) + SSmonitor.stats.normal_T2++ + if(XENO_TIER_THREE) + SSmonitor.stats.normal_T3++ + if(XENO_TIER_FOUR) + SSmonitor.stats.normal_T4++ if(XENO_UPGRADE_PRIMO) + switch(tier) + if(XENO_TIER_TWO) + SSmonitor.stats.primo_T2++ + if(XENO_TIER_THREE) + SSmonitor.stats.primo_T3++ + if(XENO_TIER_FOUR) + SSmonitor.stats.primo_T4++ if(!silent) to_chat(src, span_xenoannounce(xeno_caste.primordial_message))