An abstract class in Root.Township, Alta.StatSystem.
Base for a stat that cancels out against another stat: whenever it changes, both lose the smaller of the two values.
Constructors
| Member | What it is |
|---|
protected ControlledStat() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
| Member | What it is |
|---|
private StatDefinition controlledDefinition | The opposing stat this one cancels against. |
Methods
| Member | What it is |
|---|
override void Applied(StatManager manager, Stat stat) | Binds the stat so any change subtracts the smaller of this and the controlled stat's value from both. |