Exemple #1
0
 public virtual int CalculateDamage(Orc orc) => NeedsTwoHands ? _damage * 2 : _damage;
Exemple #2
0
 public override int CalculateDamage(Orc orc) =>
 orc.Armored
                 ? (int)Math.Round(base.CalculateDamage(orc) * .1)
                 : base.CalculateDamage(orc) * 2;
Exemple #3
0
 public override int CalculateDamage(Orc orc) =>
 _impactDamage + (orc.Armored
                                     ? (int)Math.Round(base.CalculateDamage(orc) * .8)
                                     : base.CalculateDamage(orc));