Sword.cs 720 B

12345678910111213141516171819202122232425262728293031
  1. using Infrastructure;
  2. namespace Domain.Weapons;
  3. public class Sword : Weapon
  4. {
  5. //public virtual object sword_damage()
  6. //{
  7. // return this.RollDices(1, 10) + 3 + this.MF;
  8. //}
  9. public int FastAttack(int cc)
  10. {
  11. var damage = 0;
  12. for (var i = 0; i < 2; i++)
  13. if (DiceService.RollDices(1, 100) <= cc)
  14. damage += DiceService.RollDices(1, 10) + 3 + cc;
  15. return damage;
  16. }
  17. public override int DamageAmount(int successDegree)
  18. {
  19. throw new NotImplementedException();
  20. }
  21. public override int Attack(int bonusCc, int cc, string amo = null, bool? isHorde = null)
  22. {
  23. return DiceService.RollDices(1, 10) + 3 + cc;
  24. }
  25. }