DrawnCurveDiminishingReturns ​
Inherits: DiminishingReturns < Resource
A hand-drawn efficiency curve (the Dark Souls style table). X is points / max_input (0 to 1), Y is the efficiency: the share of the points that counts at that many points (1.0 = all of them, 0.5 = half). Effective points = points x efficiency. Past max_input the efficiency at the end of the curve is kept and each extra point counts only beyond_rate of that. This is the old "custom curve" scaling of stat effects, now usable on any effect. With level scaling max_input is multiplied by the level factor.
Properties ​
Curve | curve | |
float | max_input | 1000.0 |
float | beyond_rate | 0.5 |
Methods ​
float | apply( points: float, context: FormulaContext = null ) |
String | get_label() |
String | get_description() |
Vector2 | get_preview_range() |
Array[String] | validate() |
Property descriptions ​
Curve curve ​
The efficiency curve: x is points / max_input, y is the share of the points that counts
float max_input = 1000.0 ​
The points at which the curve ends (X = 1)
float beyond_rate = 0.5 ​
The share of each point beyond max_input that counts (on top of the end efficiency)
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).