Class AbilityStatChange

Namespace
FTK2.ModAPI.Content.Abilities
Assembly
FTK2.ModAPI.dll

A native CHANGE_STAT action. Negative HP values heal; ordinary weapon damage leaves both flat values null and uses the granting item's roll.

public sealed class AbilityStatChange : AbilityEffect
Inheritance
AbilityStatChange
Inherited Members

Constructors

AbilityStatChange(ItemStat, AbilityDamageType, bool, bool, int?, int?)

Creates a native stat-change effect.

public AbilityStatChange(ItemStat stat, AbilityDamageType damageType, bool isBlockable, bool isSilent = false, int? flatValue = null, int? flatPercent = null)

Parameters

stat ItemStat
damageType AbilityDamageType
isBlockable bool
isSilent bool
flatValue int?
flatPercent int?

Remarks

Leave both flat values null for ordinary weapon damage driven by the granting item's skill roll. Negative HP values heal.

Properties

DamageType

public AbilityDamageType DamageType { get; }

Property Value

AbilityDamageType

FlatPercent

public int? FlatPercent { get; }

Property Value

int?

FlatValue

public int? FlatValue { get; }

Property Value

int?

IsBlockable

public bool IsBlockable { get; }

Property Value

bool

IsSilent

public bool IsSilent { get; }

Property Value

bool

Kind

public override AbilityEffectKind Kind { get; }

Property Value

AbilityEffectKind

Stat

public ItemStat Stat { get; }

Property Value

ItemStat