public void DurationEffectStep(TimeEffect effect) { if (effect.Stack > 0) { AddModifier(effect); } effect.Used(); //init stack -1; }
public void DurationEffectStep(TimeEffect effect) { if (effect.Stack > 0) { if (value + effect.Value < MaxValue) { value += effect.Value; } else { this.value = MaxValue; } } effect.Used(); //init stack -1; }