Class Stats
[Serializable]
public class Stats : IStats, ICloneable
- Inheritance
-
Stats
- Implements
- Derived
- Inherited Members
Constructors
Stats()
public Stats()
Stats(Stats)
public Stats(Stats value)
Parameters
value
Stats
Fields
LegacyDecimalStatTypes
protected readonly HashSet<StatType> LegacyDecimalStatTypes
Field Value
_statMap
protected readonly StatMap _statMap
Field Value
Properties
ATK
public long ATK { get; }
Property Value
ArmorPenetration
public long ArmorPenetration { get; }
Property Value
CDMG
public long CDMG { get; }
Property Value
CRI
public long CRI { get; }
Property Value
DEF
public long DEF { get; }
Property Value
DRR
public long DRR { get; }
Property Value
DRV
public long DRV { get; }
Property Value
HIT
public long HIT { get; }
Property Value
HP
public long HP { get; }
Property Value
SPD
public long SPD { get; }
Property Value
Thorn
public long Thorn { get; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public virtual object Clone()
Returns
- object
A new object that is a copy of this instance.
GetStat(StatType)
public decimal GetStat(StatType statType)
Parameters
statType
StatType
Returns
GetStatAsLong(StatType)
public long GetStatAsLong(StatType statType)
Parameters
statType
StatType
Returns
GetStats(bool)
public IEnumerable<(StatType statType, long value)> GetStats(bool ignoreZero = false)
Parameters
ignoreZero
bool
Returns
Modify(IEnumerable<StatModifier>)
public void Modify(IEnumerable<StatModifier> statModifiers)
Parameters
statModifiers
IEnumerable<StatModifier>
Reset()
public void Reset()
Set(StatMap, params Stats[])
public void Set(StatMap statMap, params Stats[] statsArray)
Parameters
Set(StatsMap)
public void Set(StatsMap value)
Parameters
value
StatsMap
Set(IEnumerable<StatModifier>, params Stats[])
public void Set(IEnumerable<StatModifier> statModifiers, params Stats[] baseStats)
Parameters
statModifiers
IEnumerable<StatModifier>baseStats
Stats[]
SetStatForTest(StatType, decimal)
Use this only for testing.
public void SetStatForTest(StatType statType, decimal value)