Admin's Check antagonist panel now displays how many people are infected by white terrors (#19806)

* begining

* Dead infected no longer display as infected

* Apply suggestions from code review

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

* Update code/modules/admin/player_panel.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* People revived with eggs will now be re-added to the infected count

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
Samman166
2022-12-04 16:19:20 -06:00
committed by GitHub
co-authored by Sirryan2002 Contrabang
parent 0311198bc1
commit 5196109a2b
3 changed files with 24 additions and 1 deletions
+3 -1
View File
@@ -510,13 +510,15 @@
var/count_eggs = 0
var/count_spiderlings = 0
var/count_infected = 0
for(var/obj/structure/spider/eggcluster/terror_eggcluster/E in GLOB.ts_egg_list)
if(is_station_level(E.z))
count_eggs += E.spiderling_number
for(var/obj/structure/spider/spiderling/terror_spiderling/L in GLOB.ts_spiderling_list)
if(!L.stillborn && is_station_level(L.z))
count_spiderlings += 1
dat += "<table cellspacing=5><TR><TD>Growing TS on-station: [count_eggs] egg[count_eggs != 1 ? "s" : ""], [count_spiderlings] spiderling[count_spiderlings != 1 ? "s" : ""]. </TD></TR></TABLE>"
count_infected = length(GLOB.ts_infected_list)
dat += "<table cellspacing=5><tr><td>Growing TS on-station: [count_eggs] egg\s, [count_spiderlings] spiderling\s, [count_infected] infected</td></tr></table>"
if(SSticker.mode.ert.len)
dat += check_role_table("ERT", SSticker.mode.ert)