Fix formatting

This commit is contained in:
D1GQ committed 2024-07-27 22:54:01 -05:00
1 parent 61d2aa3172
commit a88cd04455
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ static class ExtendedPlayerControl
public static string GetRoleName(this PlayerControl player) => player?.Data != null && Main.GetRoleName.TryGetValue((int)player.Data.RoleType, out var roleName) ? roleName : string.Empty;
// Check if player is Shapeshifting
public static bool IsInShapeshift(this PlayerControl player) => player != null && (player.shapeshiftTargetPlayerId > -1 || player.shapeshifting);
// Check if player is in vanish
// Check if player is in vanish as Phantom
public static bool IsInVanish(this PlayerControl player)
{
if (player != null && player.Data.Role is PhantomRole phantomRole)
+1 -1
View File
@@ -21,7 +21,7 @@ public static class GameStates
public static bool IsInGame => InGame;
public static bool IsLobby => AmongUsClient.Instance?.GameState == InnerNet.InnerNetClient.GameStates.Joined;
public static bool IsInIntro => IntroCutscene.Instance != null;
public static bool IsInGamePlay => ((InGame && !IsLobby && !IsInIntro) || IsFreePlay);
public static bool IsInGamePlay => (InGame && !IsLobby && !IsInIntro) || IsFreePlay;
public static bool IsEnded => AmongUsClient.Instance?.GameState == InnerNet.InnerNetClient.GameStates.Ended;
public static bool IsNotJoined => AmongUsClient.Instance?.GameState == InnerNet.InnerNetClient.GameStates.NotJoined;
public static bool IsOnlineGame => AmongUsClient.Instance?.NetworkMode == NetworkModes.OnlineGame;