mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 11:39:45 +00:00
Added remove self method for modifiers
This commit is contained in:
1 parent
90921ff786
commit
d64eaddb0e
1 file changed
+8
@@ -128,4 +128,12 @@ public abstract class BaseModifier : IOptionable
|
||||
/// </summary>
|
||||
/// <returns>True if the player can vent, false otherwise. Null for no effect.</returns>
|
||||
public virtual bool? CanVent() => null;
|
||||
|
||||
/// <summary>
|
||||
/// Removes this modifier instance from the player.
|
||||
/// </summary>
|
||||
public void RemoveSelf()
|
||||
{
|
||||
ModifierComponent?.RemoveModifier(this);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user