コード例 #1
0
 public void Baseattack16Return1050()
 {
     BaseAttackModifier bAttack = new BaseAttackModifier();
     string expected = "10/5/0/-5";
     string actual = bAttack.BaseAttackString(16, 10);
     Assert.AreEqual(expected, actual);
 }
コード例 #2
0
 public void Baseattack15Return1161()
 {
     BaseAttackModifier bAttack = new BaseAttackModifier();
     string expected = "11/6/1";
     string actual = bAttack.BaseAttackString(15, 11);
     Assert.AreEqual(expected, actual);
 }
コード例 #3
0
 public void BastAttackStringBad50()
 {
     BaseAttackModifier bAttack = new BaseAttackModifier();
     string expected = "Error";
     string actual = bAttack.BaseAttackString(-5,0);
     Assert.AreEqual(expected, actual);
 }
コード例 #4
0
 public void BastAttackString2015105()
 {
     BaseAttackModifier bAttack = new BaseAttackModifier();
     string expected = "20/15/10/5";
     string actual = bAttack.BaseAttackString(20);
     Assert.AreEqual(expected, actual);
 }
コード例 #5
0
ファイル: Player.cs プロジェクト: Kindlar/Character-Gen
 public virtual void CalculateRangeTotal(int rangeMiscMod)
 {
     BaseAttackModifier baseAttack = new BaseAttackModifier();
     PlayerClass.Attack.RangedAttackTotal = baseAttack.BaseAttackString(PlayerClass.Attack.BaseAttack, baseAttack.MeleeAttackTotal(PlayerClass.Attack.BaseAttack, PlayerClass.StatMods.DexAbilityMod, Race.SizeMod, rangeMiscMod));
 }
コード例 #6
0
ファイル: PlayerClass.cs プロジェクト: Kindlar/Character-Gen
 public virtual void CalculateBaseAttack()
 {
     BaseAttackModifier baseAttack = new BaseAttackModifier();
     Attack.BaseAttack = baseAttack.GetBaseAttack(PlayerLevel, ChosenClass);
     Attack.BaseAttackTotal = baseAttack.BaseAttackString(Attack.BaseAttack);
 }