Remove IsHideAndSeek

This commit is contained in:
amber committed 2026-08-06 17:37:55 -04:00
1 parent 0cf4954eaf
commit 121baeb178
3 files changed
+2 -8

No files matched your search

+1 -6
View File
@@ -31,7 +31,7 @@ public abstract class AbstractGameMode : IOptionable
/// <summary>
/// Gets the colored game mode name, using the color and name properties.
/// </summary>
public string ColoredName => $"<color=#{Color.ToHtmlStringRGBA()}>{Name}</color>";
public string ColoredName => $"<color=#{this.Color.ToHtmlStringRGBA()}>{this.Name}</color>";
/// <summary>
/// Gets the game mode id.
@@ -43,11 +43,6 @@ public abstract class AbstractGameMode : IOptionable
/// </summary>
public virtual bool GameModeBodyTypeOverride => false;
/// <summary>
/// Gets a value indicating whether the gamemode is based on Hide n Seek.
/// </summary>
public virtual bool IsHideAndSeek => false;
/// <summary>
/// Gets a value indicating whether the gamemode removes the normal game settings.
/// </summary>
-1
View File
@@ -33,7 +33,6 @@ public class HideAndSeekMode : AbstractGameMode
public override bool ShouldShowSabotageMap(MapBehaviour map) => false;
public override bool ShowGameModeIntroCutscene => true;
public override bool GameModeBodyTypeOverride => true;
public override bool IsHideAndSeek => true;
public override bool ShowNormalGameSettings => false;
public static int ImpostorPlayerID()
@@ -22,7 +22,7 @@ internal static class GameManagerPatches
{
if (CustomGameModeManager.ActiveMode != null)
{
__result = CustomGameModeManager.ActiveMode.IsHideAndSeek;
__result = CustomGameModeManager.ActiveMode is HideAndSeekMode;
return false;
}