namespace StatHub;
[GlobalClass, Icon("res://addons/StatHub/Assets/StatModifier.png")]
public abstract partial class StatModifier : Resource
A modifier edits and returns an input value based on its settings and internal rules.
Generally, modifiers are used through instances:
Modifiers may be automatically attached to matching stats via global modifiers:
There are two base implementations of StatModifier
in the plugin:
ContainerTagMatcher
[Export]
public TagMatcher ContainerTagMatcher { get; private set; }
The matcher used to determine applicable containers when used as a global modifier.
If unassigned, this will not match with any containers and cannot be used as a global modifier.
DebugName
[Export]
public string DebugName { get; private set; }
Defaults to the resource's name if not specified.
FigureTagMatcher
[Export]
public TagMatcher FigureTagMatcher { get; private set; }
The matcher used to determine applicable figures when used as a global modifier.