Example #1
0
 public void DurationEffectStep(TimeEffect effect)
 {
     if (effect.Stack > 0)
     {
         AddModifier(effect);
     }
     effect.Used(); //init stack -1;
 }
Example #2
0
 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;
 }