예제 #1
0
 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);
 }
예제 #2
0
 public void AddModifier(StatModifier mod)
 {
     _statModifiers.Add(mod);
     _statModifiers.Sort(CompareModifierPriority);
     CalculateFinalValue();
 }