Table of Contents

Class Equipment

Namespace
Nekoyume.Model.Item
Assembly
Lib9c.dll
[Serializable]
public class Equipment : ItemUsable, INonFungibleItem, IEquippableItem, IItem, IState
Inheritance
Equipment
Implements
Derived
Inherited Members
Extension Methods

Constructors

Equipment(Dictionary)

public Equipment(Dictionary serialized)

Parameters

serialized Dictionary

Equipment(Row, Guid, long, bool, int)

public Equipment(EquipmentItemSheet.Row data, Guid id, long requiredBlockIndex, bool madeWithMimisbrunnrRecipe = false, int iconId = 0)

Parameters

data EquipmentItemSheet.Row
id Guid
requiredBlockIndex long
madeWithMimisbrunnrRecipe bool
iconId int

Equipment(SerializationInfo, StreamingContext)

protected Equipment(SerializationInfo info, StreamingContext _)

Parameters

info SerializationInfo
_ StreamingContext

Fields

ByCustomCraft

public bool ByCustomCraft

Field Value

bool

CraftWithRandom

public bool CraftWithRandom

Field Value

bool

Exp

public long Exp

Field Value

long

HasRandomOnlyIcon

public bool HasRandomOnlyIcon

Field Value

bool

IconId

public int IconId

Field Value

int

equipped

public bool equipped

Field Value

bool

level

public int level

Field Value

int

optionCountFromCombination

public int optionCountFromCombination

Field Value

int

Properties

Equipped

public bool Equipped { get; }

Property Value

bool

MadeWithMimisbrunnrRecipe

public bool MadeWithMimisbrunnrRecipe { get; }

Property Value

bool

SetId

public int SetId { get; }

Property Value

int

SpineResourcePath

public string SpineResourcePath { get; }

Property Value

string

Stat

public DecimalStat Stat { get; }

Property Value

DecimalStat

UniqueStatType

public StatType UniqueStatType { get; }

Property Value

StatType

Methods

Equals(Equipment)

protected bool Equals(Equipment other)

Parameters

other Equipment

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equip()

public void Equip()

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetIncrementAmountOfEnhancement()

public decimal GetIncrementAmountOfEnhancement()

Returns

decimal

GetOptions()

public List<object> GetOptions()

Returns

List<object>

GetRealExp(EquipmentItemSheet, EnhancementCostSheetV3)

public long GetRealExp(EquipmentItemSheet itemSheet, EnhancementCostSheetV3 costSheet)

Parameters

itemSheet EquipmentItemSheet
costSheet EnhancementCostSheetV3

Returns

long

LevelUp(IRandom, Row, bool)

[Obsolete("Since ItemEnhancement12, Use `SetLevel` instead.")]
public void LevelUp(IRandom random, EnhancementCostSheetV2.Row row, bool isGreatSuccess)

Parameters

random IRandom
row EnhancementCostSheetV2.Row
isGreatSuccess bool

LevelUpV1()

[Obsolete("Use LevelUp")]
public void LevelUpV1()

Serialize()

public override IValue Serialize()

Returns

IValue

SetLevel(IRandom, int, EnhancementCostSheetV3)

public void SetLevel(IRandom random, int targetLevel, EnhancementCostSheetV3 sheet)

Parameters

random IRandom
targetLevel int
sheet EnhancementCostSheetV3

Unequip()

public void Unequip()