Table of Contents

Class Skill

Namespace
Nekoyume.Model.Skill
Assembly
Lib9c.dll
[Serializable]
public abstract class Skill : IState, ISkill
Inheritance
Skill
Implements
Derived
Inherited Members

Constructors

Skill(Row, long, int, int, StatType)

protected Skill(SkillSheet.Row skillRow, long power, int chance, int statPowerRatio, StatType referencedStatType)

Parameters

skillRow SkillSheet.Row
power long
chance int
statPowerRatio int
referencedStatType StatType

Properties

Chance

public int Chance { get; }

Property Value

int

CustomField

public SkillCustomField? CustomField { get; set; }

Property Value

SkillCustomField?

Power

Determines damage of AttackSkill. Determines effect of BuffSkill.

public long Power { get; }

Property Value

long

ReferencedStatType

public StatType ReferencedStatType { get; }

Property Value

StatType

SkillRow

public SkillSheet.Row SkillRow { get; }

Property Value

SkillSheet.Row

StatPowerRatio

public int StatPowerRatio { get; }

Property Value

int

Methods

Equals(Skill)

protected bool Equals(Skill other)

Parameters

other Skill

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.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsBuff()

public bool IsBuff()

Returns

bool

IsDebuff()

public bool IsDebuff()

Returns

bool

ProcessBuff(CharacterBase, int, IEnumerable<Buff>, bool)

protected IEnumerable<Skill.SkillInfo> ProcessBuff(CharacterBase caster, int simulatorWaveTurn, IEnumerable<Buff> buffs, bool copyCharacter)

Parameters

caster CharacterBase
simulatorWaveTurn int
buffs IEnumerable<Buff>
copyCharacter bool

Returns

IEnumerable<Skill.SkillInfo>

Serialize()

public IValue Serialize()

Returns

IValue

Update(int, long, int)

public void Update(int chance, long power, int statPowerRatio)

Parameters

chance int
power long
statPowerRatio int

Use(CharacterBase, int, IEnumerable<Buff>, bool)

public abstract Skill Use(CharacterBase caster, int simulatorWaveTurn, IEnumerable<Buff> buffs, bool copyCharacter)

Parameters

caster CharacterBase
simulatorWaveTurn int
buffs IEnumerable<Buff>
copyCharacter bool

Returns

Skill