USRINGENICO\fmorel 3 anni fa
parent
commit
22400ce6f6

+ 1 - 1
Dotnet/Warhammer/Models/Weapons/Bolter.cs

@@ -18,7 +18,7 @@ namespace Warhammer.Models.Weapons
             return throws.Sum() + 5 * successDegree;
         }
 
-        public override int Shoot(int bonusCt, int ct, string amo = null, bool? isHorde = null)
+        public override int Attack(int bonusCt, int ct, string amo = null, bool? isHorde = null)
         {
             int successDegree;
             var ctDice = ct - DiceService.RollDices(1, 100) + bonusCt;

+ 1 - 1
Dotnet/Warhammer/Models/Weapons/FlameThrower.cs

@@ -15,7 +15,7 @@ namespace Warhammer.Models.Weapons
             throw new NotImplementedException();
         }
 
-        public override int Shoot(int bonusCt, int ct, string amo = null, bool? isHorde = null)
+        public override int Attack(int bonusCt, int ct, string amo = null, bool? isHorde = null)
         {
             if (isHorde == true)
             {

+ 15 - 0
Dotnet/Warhammer/Models/Weapons/Sword.cs

@@ -0,0 +1,15 @@
+namespace Warhammer.Models.Weapons
+{
+    public class Sword : Weapon
+    {
+        public override int DamageAmount(int successDegree)
+        {
+            throw new System.NotImplementedException();
+        }
+
+        public override int Attack(int bonusCc, int cc, string amo = null, bool? isHorde = null)
+        {
+            throw new System.NotImplementedException();
+        }
+    }
+}

+ 1 - 1
Dotnet/Warhammer/Models/Weapons/Weapon.cs

@@ -16,7 +16,7 @@ namespace Warhammer.Models.Weapons
         public string Rch { get; set; }
         public string Attribute { get; set; }
 
-        public abstract int Shoot(int bonusCt, int ct, string amo = null, bool? isHorde = null);
+        public abstract int Attack(int bonusStat, int stat, string amo = null, bool? isHorde = null);
         public abstract int DamageAmount(int successDegree);
 
     }

+ 0 - 40
Dotnet/Warhammer/Service/DiceService.cs

@@ -26,51 +26,11 @@ namespace Warhammer.Service
             return sum;
         }
 
-
-        //public int flamethrower(bool hord = true)
-        //{
-        //    if (hord)
-        //    {
-        //        return np.ceil(this.weapons[0].range / 4) + RollDices(1, 5);
-        //    }
-        //}
-
-        //public virtual object bolter_damage(object success_degree)
-        //{
-        //    var throw = new List<object>();
-        //    foreach (var degree in Enumerable.Range(0, success_degree))
-        //    {
-        //        var current_throw = this.RollDices(3, 10);
-        //        throw.append(current_throw[np.argsort(current_throw)[-2]]);
-        //    }
-        //    Console.WriteLine(throw);
-        //    return np.sum(throw) + 5 * success_degree;
-        //}
-
-        //public virtual object bolter(object bonus_ct = 0)
-        //{
-        //    object success_degree;
-        //    var ct_dice = this.CT - this.RollDices(1, 100) + bonus_ct;
-        //    Console.WriteLine(String.Format("ct_dice_roll %i", ct_dice));
-        //    if (ct_dice > 0)
-        //    {
-        //        success_degree = 1 + Convert.ToInt32(math.floor(ct_dice / 10));
-        //        Console.WriteLine(success_degree);
-        //    }
-        //    else
-        //    {
-        //        success_degree = 0;
-        //    }
-        //    return this.bolter_damage(success_degree);
-        //}
-
         //public virtual object sword_damage()
         //{
         //    return this.RollDices(1, 10) + 3 + this.MF;
         //}
 
-
-
         //public virtual object fast_attack()
         //{
         //    var damage = 0;