public void AttackMultipliedGenerateRange() { var a = new Attack(10, 100); a.MultiplyDamage(1.5); for (int i = 0; i < 20; i++) { int dmg = a.GenerateDamage(); Assert.IsTrue(dmg <= 150 && dmg >= 15); } }
public void AttackMultipliedGenerateFixed() { var a = new Attack(10, 10); a.MultiplyDamage(1.5); Assert.AreEqual(15, a.GenerateDamage()); }
public override void ModifyOutgoing(Attack outgoing) { outgoing.MultiplyDamage(DamageMultiplier); }