Fix ZS Stats Bug

statMostSurvived and statMostInfected now point to the appropriate ZombieStats DB column.
This commit is contained in:
Bryce 2025-06-01 22:04:24 -04:00 committed by GitHub
parent 51e63d22db
commit bc5859896c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,9 +36,9 @@ namespace MCGalaxy.Modules.Games.ZS
static void HookStats() {
statMostInfected = new DBTopStat("Infected", "Most players infected",
"ZombieStats", "TotalInfected", TopStat.FormatInteger);
statMaxInfected = new DBTopStat("Survived", "Most rounds survived",
statMostSurvived = new DBTopStat("Survived", "Most rounds survived",
"ZombieStats", "TotalRounds", TopStat.FormatInteger);
statMostSurvived = new DBTopStat("ConsecutiveInfected", "Most consecutive infections",
statMaxInfected = new DBTopStat("ConsecutiveInfected", "Most consecutive infections",
"ZombieStats", "MaxInfected", TopStat.FormatInteger);
statMaxSurvived = new DBTopStat("ConsecutiveSurvived", "Most consecutive rounds survived",
"ZombieStats", "MaxRounds", TopStat.FormatInteger);