mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
Various fixes for xenomorph logging (#26006)
* Various fixes for biohazard logging * Better ways of counting xenos
This commit is contained in:
@@ -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
|
||||
.++
|
||||
|
||||
Reference in New Issue
Block a user