public void AddCumulativeExpiringModifier(StatModifier mod, float expireyTime) { // TODO: add a variable stacking limit, eg (slow that stacks up to 5 times). Probably handled in the controller, but maybe handled within this class. StatModifierController.Instance.AddCumulativeModExpirey(this, mod, expireyTime); AddModifier(mod); }
public void AddModifier(StatModifier mod) { _statModifiers.Add(mod); _statModifiers.Sort(CompareModifierPriority); CalculateFinalValue(); }