Poprawki w rolach zwyciezcow
This commit is contained in:
@@ -38,6 +38,10 @@ public static class StatsExporter
|
||||
return;
|
||||
}
|
||||
|
||||
// Wait a short delay to ensure TOU Mira has finished updating all static fields
|
||||
// (including WinningFaction which is set after PlayerRecords)
|
||||
await Task.Delay(100);
|
||||
|
||||
// Get data from TOU Mira via reflection
|
||||
var bridge = ReflectionBridgeProvider.GetBridge();
|
||||
|
||||
@@ -54,6 +58,7 @@ public static class StatsExporter
|
||||
var winningFaction = bridge.GetWinningFaction();
|
||||
|
||||
TownOfUsStatsPlugin.Logger.LogInfo($"Collected data: {playerRecords.Count} players, {playerStats.Count} stats entries");
|
||||
TownOfUsStatsPlugin.Logger.LogInfo($"WinningFaction from GameHistory: '{winningFaction}'");
|
||||
|
||||
// Transform to export format
|
||||
var gameData = DataTransformer.TransformToExportFormat(
|
||||
|
||||
Reference in New Issue
Block a user