diff --git a/MiraAPI/Modifiers/BaseModifier.cs b/MiraAPI/Modifiers/BaseModifier.cs index 67f7410..9f6aa93 100644 --- a/MiraAPI/Modifiers/BaseModifier.cs +++ b/MiraAPI/Modifiers/BaseModifier.cs @@ -36,9 +36,9 @@ public abstract class BaseModifier public virtual bool ShowInFreeplay => false; /// - /// Gets a value indicating whether the modifier can be added multiple times. + /// Gets a value indicating whether the modifier is unique. If true, the player can only have one instance of this modifier. /// - public virtual bool Stackable => false; + public virtual bool Unique => true; /// /// Gets the HUD information for this modifier. Defaults to the modifier name. Does nothing if is true. diff --git a/MiraAPI/Modifiers/ModifierComponent.cs b/MiraAPI/Modifiers/ModifierComponent.cs index 9918eab..2b00652 100644 --- a/MiraAPI/Modifiers/ModifierComponent.cs +++ b/MiraAPI/Modifiers/ModifierComponent.cs @@ -260,7 +260,7 @@ public class ModifierComponent(IntPtr cppPtr) : MonoBehaviour(cppPtr) return null; } - if (Modifiers.Find(x => x.ModifierId == modifierId && !x.Stackable) != null) + if (Modifiers.Find(x => x.ModifierId == modifierId && x.Unique) != null) { Logger.Error($"Player already has modifier with id {modifierId}!"); return null;