Bump version to 1.0.2

- Fix role name normalization: remove "Tou" suffix from all roles (e.g., TrackerTou -> Tracker)
- Set platform to "Mira" for all players (TOU Mira is Mira-based)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-09 00:05:18 +02:00
parent ccbc3bc5c7
commit 888bce220e
4 changed files with 8 additions and 41 deletions

View File

@@ -336,14 +336,11 @@ public class TouMiraReflectionBridge
{
roleName = typeName.Substring(0, typeName.Length - 4);
}
// Remove "Tou" suffix (e.g., "EngineerTou" -> "Engineer")
else if (typeName.EndsWith("Tou"))
// Remove "Tou" suffix if present (e.g., "EngineerTou" -> "Engineer", "TrackerTou" -> "Tracker")
if (roleName.EndsWith("Tou"))
{
roleName = typeName.Substring(0, typeName.Length - 3);
}
else
{
roleName = typeName;
roleName = roleName.Substring(0, roleName.Length - 3);
}
TownOfUsStatsPlugin.Logger.LogInfo($"Player {playerId}: Using type name as role: {roleName}");