27 public static T GetModifierRarity<T>(
this Mod mod) where T :
ModifierRarity => (T)GetModifierRarity(mod, typeof(T).Name);
28 public static ModifierRarity GetModifierRarity(
this Mod mod, Type type) => GetModifierRarity(mod, type.Name);
34 var fod = v.FirstOrDefault(x => x.content.Name.Equals(name));
41 public static uint GetModifierRarityType<T>(
this Mod mod) where T :
ModifierRarity => GetModifierRarityType(mod, typeof(T).Name);
42 public static uint GetModifierRarityType(
this Mod mod, Type type) => GetModifierRarityType(mod, type.Name);
43 public static uint GetModifierRarityType(
this Mod mod,
string name) => GetModifierRarity(mod, name)?.Type ?? 0;
45 public static T GetModifier<T>(
this Mod mod) where T :
Modifier => (T)GetModifier(mod, typeof(T).Name);
46 public static Modifier GetModifier(
this Mod mod, Type type) => GetModifier(mod, type.Name);
52 var fod = v.FirstOrDefault(x => x.content.Name.Equals(name));
59 public static uint GetModifierType<T>(
this Mod mod) where T :
Modifier => GetModifierType(mod, typeof(T).Name);
60 public static uint GetModifierType(
this Mod mod, Type type) => GetModifierType(mod, type.Name);
61 public static uint GetModifierType(
this Mod mod,
string name) => GetModifier(mod, name)?.Type ?? 0;
63 public static T GetModifierPool<T>(
this Mod mod) where T :
ModifierPool => (T)GetModifierPool(mod, typeof(T).Name);
64 public static ModifierPool GetModifierPool(
this Mod mod, Type type) => GetModifierPool(mod, type.Name);
70 var fod = v.FirstOrDefault(x => x.content.Name.Equals(name));
77 public static uint GetModifierPoolType<T>(
this Mod mod,
string name) where T :
ModifierPool => GetModifierPoolType(mod, typeof(T).Name);
78 public static uint GetModifierPoolType(
this Mod mod, Type type) => GetModifierPoolType(mod, type.Name);
79 public static uint GetModifierPoolType(
this Mod mod,
string name) => GetModifierPool(mod, name)?.Type ?? 0;
81 public static T GetModifierEffect<T>(
this Mod mod) where T :
ModifierEffect => (T)GetModifierEffect(mod, typeof(T).Name);
82 public static ModifierEffect GetModifierEffect(
this Mod mod, Type type) => GetModifierEffect(mod, type.Name);
88 var fod = v.FirstOrDefault(x => x.content.Name.Equals(name));
95 public static uint GetModifierEffectType<T>(
this Mod mod,
string name) where T :
ModifierEffect => GetModifierEffectType(mod, typeof(T).Name);
96 public static uint GetModifierEffectType(
this Mod mod, Type type) => GetModifierEffectType(mod, type.Name);
97 public static uint GetModifierEffectType(
this Mod mod,
string name) => GetModifierEffect(mod, name)?.Type ?? 0;
virtual void Clone(ref ModifierPool clone)
Allows modders to do custom cloning Happens after default cloning
Defines a modifier, which is an unloaded GlobalItem Making it a GlobalItem gives easy access to all h...
static Modifier GetModifier(this Mod mod, string name)
static ModifierContent Modifier
Defines a "Null" modifier which represents a pool with no modifiers Cannot be rolled normally ...
A ModifierEffect signifies the effect of a modifier on a player It should house the implementation...
virtual void Clone(ref Modifier clone)
Allows modders to do custom cloning here Happens after default cloning, which clones various info (mo...
static ModifierPoolContent ModifierPool
static ModifierEffect GetModifierEffect(this Mod mod, string name)
A modifier pool that always consists of all modifiers Cannot be rolled normally
Defines a set of utility methods for Mod class
Defines the rarity of a modifier
virtual void Clone(ref ModifierRarity clone)
static ModifierRarityContent ModifierRarity
Defines a modifier pool. A modifier pool holds a certain amount of effects in an array It allows to r...
static ModifierEffectContent ModifierEffect
Defines a "Null" effect which represents no effect safely Cannot be rolled normally ...
Defines a "Null" modifier which represents no modifier safely Cannot be rolled normally ...
virtual void Clone(ref ModifierEffect clone)
A modder can provide custom cloning of effects in this hook
This class holds all Content holders of this mod You can use this to access content loaded into the m...
static ModifierPool GetModifierPool(this Mod mod, string name)
Defines a "Null" rarity which represents no rarity safely Cannot be rolled normally ...
static ModifierRarity GetModifierRarity(this Mod mod, string name)