Values
using Databrain.Stats;
public class StatsValue : DataObject{}
StatsValue are values which can be modified with a modifier (StatsModifier).

Has max value
if enabled you can set a max value
Max Value
The max value
Base Value
the base value which is being used for modifiers
On Value Modified
Set a StatsEvents which gets called when this value has been modified
API
ModifiedValue
Returns the modified value
UnmodifiedValue
Returns the un-modified value
AddModifier
Add a modifier to this stats value
// Value
public StatsValue modifiableValue;
// Modifier
public StatsModifier modifier;
// Add modifier
modifiableValue.AddModifier(modifier);
RemoveModifier
Remove a modifier from the value of this stat
RemoveAllModifiers
Remove all modifiers from the value of this stat
Last updated