namespace StatHub;
[GlobalClass, Icon("res://addons/StatHub/Assets/SimpleModifier.png")]
public partial class SimpleModifier : StatModifier
A modifier that has two basic additive modification methods.
ModificationOptions
public enum ModificationOptions
{
FLAT_ADDITIVE = 0,
PERCENT_ADDITIVE = 1,
}
Defines methods for applying the base modification amount to an input.
FLAT_ADDITIVE
: Adds the amount to the input.PERCENT_ADDITIVE
: Adds a percentage of the input to itself. Note that the amount is read where "100" = 100%, "50" = 50%, etc., as opposed to other systems that use "1" = 100% and "0.5" = 50%.BaseModificationAmount
[Export]
public float BaseModificationAmount { get; private set; }
The base amount used to modify stats, depending on the selected ModificationOption
.
This is multiplied by the level for the final value, giving linear level scaling.
ModificationOption
[Export]
public ModificationOptions ModificationOption { get; private set; }
Defines how the base modification amount is applied to an input.