Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
ModifierPoolContent.cs
Go to the documentation of this file.
1 using System.Collections.Generic;
2 using System.Linq;
3 using Loot.Api.Content;
4 using Loot.Api.Core;
5 using Loot.Api.Ext;
6 using Loot.Pools;
7 
8 namespace Loot.Content
9 {
13  public sealed class ModifierPoolContent : LoadableContentBase<ModifierPool>
14  {
15  public ModifierPool NullPool => Content[0];
16  public ModifierPool AllPool => Loot.Instance.GetModifierPool<AllModifiersPool>();
17  internal IEnumerable<ModifierPool> Pools => Content.Select(x => x.Value);
18 
19  internal override void Load()
20  {
21  AddContent(NullModifierPool.INSTANCE, Loot.Instance);
22  }
23 
24  internal override bool CheckContentPiece(ModifierPool contentPiece)
25  {
26  contentPiece.CacheAttributes();
27  return true;
28  }
29  }
30 }
Defines a "Null" modifier which represents a pool with no modifiers Cannot be rolled normally ...
static NullModifierPool INSTANCE
A modifier pool that always consists of all modifiers Cannot be rolled normally
This class holds all loaded ModifierPool content
Defines a modifier pool. A modifier pool holds a certain amount of effects in an array It allows to r...
Definition: ModifierPool.cs:37
This class is used for Content holders in the Content namespace As a modder you should not use this c...