Weapon.cs 977 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections.Generic;
  2. using Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal;
  3. using Warhammer.Service;
  4. namespace Warhammer.Models.Weapons
  5. {
  6. public class Weapon : BaseEntity
  7. {
  8. public int Damage;
  9. public int Range { get; set; }
  10. public string Name { get; set; }
  11. public string GPE { get; set; }
  12. public string Type { get; set; }
  13. public int Pene { get; set; }
  14. public string Mode { get; set; }
  15. public string At { get; set; }
  16. public string Rch { get; set; }
  17. public string Attribute { get; set; }
  18. public ICollection<Player> Players { get; set; }
  19. public virtual int Attack(int bonusStat, int stat, string amo = null, bool? isHorde = null)
  20. {
  21. var ctDice = DiceService.RollDices(1, 100);
  22. return ctDice;
  23. }
  24. public virtual int DamageAmount(int successDegree)
  25. {
  26. return 0;
  27. }
  28. }
  29. }