Skip to content

Commit

Permalink
Fix xeno spawns not counting towards autobalance (#13973)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvv-vvvv authored Sep 20, 2023
1 parent dede533 commit 8a92a14
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/evolution.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 15 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/xenoupgrade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 8a92a14

Please sign in to comment.