Class StatSystem.Stats
Store the stats, which are composed of 4 values : health, strength, agility and defense.
It also contains elemental protections and boost (1 for each elements defined by the DamageType enum)
Inheritance
System.Object
StatSystem.Stats
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class Stats
Fields
agility
Declaration
Field Value
Type |
Description |
System.Int32 |
|
defense
Declaration
Field Value
Type |
Description |
System.Int32 |
|
elementalBoosts
Declaration
public int[] elementalBoosts
Field Value
Type |
Description |
System.Int32[] |
|
elementalProtection
Declaration
public int[] elementalProtection
Field Value
Type |
Description |
System.Int32[] |
|
health
Declaration
Field Value
Type |
Description |
System.Int32 |
|
strength
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Methods
Copy(StatSystem.Stats)
Declaration
public void Copy(StatSystem.Stats other)
Parameters
Modify(StatSystem.StatModifier)
Will modify that Stat by the given StatModifier (see StatModifier documentation for how to use them)
Declaration
public void Modify(StatSystem.StatModifier modifier)
Parameters