public FloatModifierMultiplier AddModifier(FloatModifierMultiplier modifier) => new FloatModifierMultiplier(Additive + modifier.Additive, (1 + Multiplicative) * (1 + modifier.Multiplicative) - 1);
Example #2
0
 public FloatModifier(float bonus, FloatModifierMultiplier multiplier)
 {
     _bonus      = bonus;
     _multiplier = multiplier;
 }