mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Update OnGameStartedPatch.cs
This commit is contained in:
1 parent
b68e9d0a98
commit
5eca88085c
1 file changed
+7
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user