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:
@@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user