Add role settings toggle and imp cooldown for mode

This commit is contained in:
Atony committed 2026-08-12 22:53:30 -05:00
1 parent 4c38189444
commit 54bfd3002b
1 file changed
+11
+11
View File
@@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using AmongUs.GameOptions;
using MiraAPI.GameOptions;
using MiraAPI.PluginLoading;
using Reactor.Utilities.Extensions;
@@ -48,6 +49,16 @@ public abstract class AbstractGameMode : IOptionable
/// </summary>
public virtual bool ShowNormalGameSettings => true;
/// <summary>
/// Gets a value indicating whether the gamemode removes the normal role settings.
/// </summary>
public virtual bool ShowNormalRoleSettings => true;
/// <summary>
/// Gets a value indicating the default kill cooldown for impostors in this mode.
/// </summary>
public virtual float DefaultImpostorKillCooldown => GameOptionsManager.Instance.CurrentGameOptions.GetFloat(FloatOptionNames.KillCooldown);
/// <summary>
/// Called on GameManager.GetBodyType().
/// </summary>