Skip to main content

IndirectModifierSaveData

A class in Root.Township, Alta.StatSystem.

Saved state of one IndirectModifier, a stat change that plays out over a curve for a number of ticks. On load, ticks for the time passed since saving are added, and modifiers that ran out are dropped.

Constructors​

MemberWhat it is
IndirectModifierSaveData()Creates an IndirectModifierSaveData with default values.

Fields​

MemberWhat it is
float baseValueValue the curve is multiplied by.
uint durationTotal length of the modifier in ticks.
uint tickTicks already run when it was saved.
Curve valueOverDurationCurve of the value over the modifier's life, from 0 to 1.

Used in​

Members of other types that take, return or hold a IndirectModifierSaveData: