Update OnGameStartedPatch.cs

This commit is contained in:
HyperAtill authored and GitHub committed 2025-07-11 13:34:12 +03:00
1 parent b68e9d0a98
commit 5eca88085c
1 file changed
+7 -2
+7 -2
View File
@@ -340,7 +340,12 @@ internal static class ChangeRoleSettings
foreach (PlayerControl pc in Main.AllPlayerControls)
{
int colorId = pc.Data.DefaultOutfit.ColorId;
if (AmongUsClient.Instance.AmHost && Options.FormatNameMode.GetInt() == 1) pc.RpcSetName(Palette.GetColorName(colorId));
if (AmongUsClient.Instance.AmHost && Options.FormatNameMode.GetInt() == 1)
{
string colorName = Palette.GetColorName(colorId);
string formattedColorName = char.ToUpper(colorName[0]) + colorName.Substring(1).ToLower();
pc.RpcSetName(formattedColorName);
}
Main.PlayerStates[pc.PlayerId] = new(pc.PlayerId);
Main.AllPlayerSpeed[pc.PlayerId] = Main.RealOptionsData.GetFloat(FloatOptionNames.PlayerSpeedMod);
@@ -1495,4 +1500,4 @@ internal static class StartGameHostPatch
OverriddenTeamRevealScreen = null;
}
}
}
}