Table of Contents

Class Stats

Namespace
Nekoyume.Model.Stat
Assembly
Lib9c.dll
[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

HashSet<StatType>

_statMap

protected readonly StatMap _statMap

Field Value

StatMap

Properties

ATK

public long ATK { get; }

Property Value

long

ArmorPenetration

public long ArmorPenetration { get; }

Property Value

long

CDMG

public long CDMG { get; }

Property Value

long

CRI

public long CRI { get; }

Property Value

long

DEF

public long DEF { get; }

Property Value

long

DRR

public long DRR { get; }

Property Value

long

DRV

public long DRV { get; }

Property Value

long

HIT

public long HIT { get; }

Property Value

long

HP

public long HP { get; }

Property Value

long

SPD

public long SPD { get; }

Property Value

long

Thorn

public long Thorn { get; }

Property Value

long

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

decimal

GetStatAsLong(StatType)

public long GetStatAsLong(StatType statType)

Parameters

statType StatType

Returns

long

GetStats(bool)

public IEnumerable<(StatType statType, long value)> GetStats(bool ignoreZero = false)

Parameters

ignoreZero bool

Returns

IEnumerable<(StatType statType, long baseValue)>

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

statMap StatMap
statsArray Stats[]

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)

Parameters

statType StatType
value decimal