Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
NullModifier.cs
Go to the documentation of this file.
1 using Loot.Api.Attributes;
2 
3 namespace Loot.Api.Core
4 {
9  [DoNotLoad]
10  public sealed class NullModifier : Modifier
11  {
12  private static NullModifier _singleton;
13  public static NullModifier INSTANCE
14  {
15  get => _singleton ?? (_singleton = new NullModifier());
16  internal set => _singleton = value;
17  }
18 
19  public override bool CanRoll(ModifierContext ctx) => false;
20 
21  private NullModifier()
22  {
23  }
24  }
25 }
Defines a modifier, which is an unloaded GlobalItem Making it a GlobalItem gives easy access to all h...
Definition: Modifier.cs:21
Defines a context in which a Modifier might be rolled Which fields are available (not null) depends o...
static NullModifier _singleton
Definition: NullModifier.cs:12
Defines a "Null" modifier which represents no modifier safely Cannot be rolled normally ...
Definition: NullModifier.cs:10