mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Fix formatting
This commit is contained in:
1 parent
61d2aa3172
commit
a88cd04455
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user