Exemplo n.º 1
0
 // overload operator *
 public static Pools operator *(Pools a, Pools b)
 {
     return(new Pools()
     {
         HitPoints = NullableMath.Multiply(a?.HitPoints, b?.HitPoints),
         Stamina = NullableMath.Multiply(a?.Stamina, b?.Stamina),
         Energy = NullableMath.Multiply(a?.Energy, b?.Energy)
     });
 }
Exemplo n.º 2
0
 // overload operator *
 public static Qualities operator *(Qualities a, Qualities b)
 {
     return(new Qualities()
     {
         CriticalHit = NullableMath.Multiply(a?.CriticalHit, b?.CriticalHit),
         CriticalDamage = NullableMath.Multiply(a?.CriticalDamage, b?.CriticalDamage),
         AttackRating = NullableMath.Multiply(a?.AttackRating, b?.AttackRating),
         ArmorRating = NullableMath.Multiply(a?.ArmorRating, b?.ArmorRating),
     });
 }
Exemplo n.º 3
0
 // overload operator *
 public static Attributes operator *(Attributes a, Attributes b)
 {
     return(new Attributes()
     {
         Might = NullableMath.Multiply(a?.Might, b?.Might),
         Finesse = NullableMath.Multiply(a?.Finesse, b?.Finesse),
         Will = NullableMath.Multiply(a?.Will, b?.Will),
         Intellect = NullableMath.Multiply(a?.Intellect, b?.Intellect),
         Spirit = NullableMath.Multiply(a?.Spirit, b?.Spirit),
         Essence = NullableMath.Multiply(a?.Essence, b?.Essence)
     });
 }