namespace StatHub;
[GlobalClass, Icon("res://addons/StatHub/Assets/ExpressionStat.png")]
public partial class ExpressionStat : Stat
An extremely customizable implementation of a stat that produces its base value from a custom expression utilizing other stats as inputs.
CustomExpression
[Export]
public string CustomExpression { get; private set; }
A custom expression that defines how the base value is determined. This string will be parsed into the type Expression
, so for usage, refer to the docs.
Any keys given as inputs may be used to represent their corresponding stat's value.
m_baseValueCached
protected float m_baseValueCached;
Stores the last calculated base value.