Class StatModifierDef
Immutable reversible stat changes, recomputed from base values in attachment order.
public sealed class StatModifierDef
- Inheritance
-
StatModifierDef
- Inherited Members
Constructors
StatModifierDef(float, float, float, float, float, float, float, bool)
Creates a reversible modifier.
public StatModifierDef(float speedScale = 1, float outputScale = 1, float inputScale = 1, float magicalInputScale = 1, float physicalShift = 0, float magicalShift = 0, float poisonShift = 0, bool stun = false)
Parameters
speedScalefloatoutputScalefloatinputScalefloatmagicalInputScalefloatphysicalShiftfloatmagicalShiftfloatpoisonShiftfloatstunbool
Properties
Combat
Additional reversible range and control modifiers.
public CombatModifierDef Combat { get; }
Property Value
InputScale
Multiplicative incoming damage change.
public float InputScale { get; }
Property Value
MagicalInputScale
Additional incoming magical damage change.
public float MagicalInputScale { get; }
Property Value
MagicalShift
Additive magical resistance change.
public float MagicalShift { get; }
Property Value
OutputScale
Multiplicative outgoing damage change.
public float OutputScale { get; }
Property Value
PhysicalShift
Additive physical defense change.
public float PhysicalShift { get; }
Property Value
PoisonShift
Additive poison resistance change.
public float PoisonShift { get; }
Property Value
SpeedScale
Multiplicative movement change; zero is supported.
public float SpeedScale { get; }
Property Value
Stun
Adds one independent stun reference.
public bool Stun { get; }
Property Value
Methods
WithCombat(CombatModifierDef)
Copies numeric modifiers and adds combat modifiers.
public StatModifierDef WithCombat(CombatModifierDef combat)
Parameters
combatCombatModifierDef