Skip to content

LinearCalculationFormula ​

Inherits: CalculationFormula < Resource

value = points x value_per_point. The default formula, and what every effect did before formulas existed (+2 attack power per Strength, 0.05 % crit chance per rating point).

Description ​

With level scaling the points needed per unit of value grow with level: value = points x value_per_point / factor.

Properties ​

floatvalue_per_point1.0

Methods ​

floatevaluate( points: float, context: FormulaContext = null )
Stringget_label()
Stringget_description()
Array[String]validate()

Property descriptions ​

float value_per_point = 1.0 ​

The value of each stat point

Method descriptions ​

float evaluate( points: float, context: FormulaContext = null ) ​

The value the formula gives for a number of stat points.

String get_label() ​

The name of the formula in the editor.

String get_description() ​

A sentence about the formula and its values.

Array[String] validate() ​

Checks the settings of the formula. Gives the warnings (empty when it is fine).