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