Skip to content

GrowthOverride ​

Inherits: Resource

Level growth for one stat or pool of one kind of entity (a class, an NPC): it replaces the growth the stat or pool definition itself has, so a warrior's Strength can grow faster than a mage's. Lives in StatsData.growth_overrides. The three growth fields work exactly like the ones on a StatDefinition / PoolDefinition, so the same editor edits both. See docs/systems/entity-stats.md, section 25.

Properties ​

inttarget_id0
CalculationFormulagrowth_formula
DiminishingReturnsgrowth_returns
floatgrowth_max0.0

Methods ​

floatcalculate_growth( level: int, context: FormulaContext = null )

Property descriptions ​

int target_id = 0 ​

The stat or pool this growth is for (a StatDefinition or PoolDefinition id)

CalculationFormula growth_formula ​

Replaces the definition's growth, even when it is empty: an override with no formula makes the stat not grow for this entity

DiminishingReturns growth_returns ​

Optional diminishing returns on the levels gained

float growth_max = 0.0 ​

Ceiling on the total growth (0 = none)

Method descriptions ​

float calculate_growth( level: int, context: FormulaContext = null ) ​

The growth at level (0 when the override has no formula)