Skip to content

FlatCalculationFormula ​

Inherits: CalculationFormula < Resource

A fixed value that does not depend on the stat points (the effect applies as soon as the entity has any of the stat). Used for a crit damage bonus of +100 % or "when blocking, take 30 % less". Replaces the old "scales with stat = off". Level scaling does not apply.

Properties ​

floatvalue1.0

Methods ​

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

Property descriptions ​

float value = 1.0 ​

The value the formula always returns, whatever the points

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).