|
@@ -26,51 +26,11 @@ namespace Warhammer.Service
|
|
|
return sum;
|
|
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()
|
|
//public virtual object sword_damage()
|
|
|
//{
|
|
//{
|
|
|
// return this.RollDices(1, 10) + 3 + this.MF;
|
|
// return this.RollDices(1, 10) + 3 + this.MF;
|
|
|
//}
|
|
//}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
//public virtual object fast_attack()
|
|
//public virtual object fast_attack()
|
|
|
//{
|
|
//{
|
|
|
// var damage = 0;
|
|
// var damage = 0;
|