From a88cd044556994192e18c4616ea1138bd68f0022 Mon Sep 17 00:00:00 2001 From: D1GQ Date: Sat, 27 Jul 2024 22:54:01 -0500 Subject: [PATCH] Fix formatting --- Modules/ExtendedPlayerControl.cs | 2 +- Modules/GameState.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/ExtendedPlayerControl.cs b/Modules/ExtendedPlayerControl.cs index 25a224e..3a1c97a 100644 --- a/Modules/ExtendedPlayerControl.cs +++ b/Modules/ExtendedPlayerControl.cs @@ -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) diff --git a/Modules/GameState.cs b/Modules/GameState.cs index c88d014..afdcdef 100644 --- a/Modules/GameState.cs +++ b/Modules/GameState.cs @@ -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;