Skip to content

SoftCapDiminishingReturns ​

Inherits: DiminishingReturns < Resource

Full value up to a threshold; above it each point only counts as a share (rate) of a point. threshold 400, rate 0.5: 400 points -> 400, 600 -> 500, 1000 -> 700. With level scaling the threshold is multiplied by the level factor (a higher level reaches the soft cap later).

Properties ​

floatthreshold400.0
floatrate0.5

Methods ​

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

Property descriptions ​

float threshold = 400.0 ​

Points counted in full

float rate = 0.5 ​

The share of each point above the threshold that counts (0 = a hard cap, 1 = no diminishing)

Method descriptions ​

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

The stat points that count after the diminishing returns.

String get_label() ​

The name of the diminishing returns in the editor.

String get_description() ​

A sentence about the diminishing returns and its values.

Vector2 get_preview_range() ​

The range of points the editor graph shows.

Array[String] validate() ​

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