Various fixes for xenomorph logging (#26006)

* Various fixes for biohazard logging

* Better ways of counting xenos
This commit is contained in:
DGamerL
2024-07-01 01:35:33 +00:00
committed by GitHub
parent 19cbfb129a
commit 6f0f9a2e9c
2 changed files with 14 additions and 8 deletions
+14 -7
View File
@@ -833,22 +833,23 @@ SUBSYSTEM_DEF(ticker)
if(ROUND_END_FORCED)
SSblackbox.record_feedback("tally", "Biohazard dies admin round end", 1, output)
if("Xenomorphs")
if(length(SSticker.mode.xenos) > 5)
var/living_xenos = count_xenomorps()
if(living_xenos > 5)
switch(outcome)
if(ROUND_END_NUCLEAR)
SSblackbox.record_feedback("tally", "Biohazard nuclear victories", 1, "Xenomorphs")
SSblackbox.record_feedback("tally", "Xeno nuclear victories", 1, "Xenomorphs")
if(ROUND_END_CREW_TRANSFER)
SSblackbox.record_feedback("tally", "Biohazard survives to normal round end", 1, "Xenomorphs")
SSblackbox.record_feedback("tally", "Xeno survives to normal round end", 1, "Xenomorphs")
if(ROUND_END_FORCED)
SSblackbox.record_feedback("tally", "Biohazard survives to admin round end", 1, "Xenomorphs")
SSblackbox.record_feedback("tally", "Xeno survives to admin round end", 1, "Xenomorphs")
else
switch(outcome)
if(ROUND_END_NUCLEAR)
SSblackbox.record_feedback("tally", "Biohazard dies station nuked", 1, "Xenomorphs")
SSblackbox.record_feedback("tally", "Xeno dies station nuked", 1, "Xenomorphs")
if(ROUND_END_CREW_TRANSFER)
SSblackbox.record_feedback("tally", "Biohazard dies normal end", 1, "Xenomorphs")
SSblackbox.record_feedback("tally", "Xeno dies normal end", 1, "Xenomorphs")
if(ROUND_END_FORCED)
SSblackbox.record_feedback("tally", "Biohazard dies admin round end", 1, "Xenomorphs")
SSblackbox.record_feedback("tally", "Xeno dies admin round end", 1, "Xenomorphs")
if("Blob")
if(length(SSticker.mode.blob_overminds))
@@ -868,3 +869,9 @@ SUBSYSTEM_DEF(ticker)
if(ROUND_END_FORCED)
SSblackbox.record_feedback("tally", "Blob dies admin round end", 1, "Blob")
/datum/controller/subsystem/ticker/proc/count_xenomorps()
. = 0
for(var/datum/mind/xeno_mind as anything in SSticker.mode.xenos)
if(xeno_mind.current?.stat == DEAD)
continue
.++