예제 #1
0
 private void ValidateOffHandAttack(IEnemy enemy)
 {
     Assert.IsNotNull(enemy);
     Assert.IsTrue(BonusActionAvailable);
     Assert.IsTrue(OffhandAttackAvailable);
     Assert.IsTrue(CurrentOffHand.CanFire());
     Assert.IsTrue(CurrentOffHand.HasShotLoaded());
 }
예제 #2
0
        private bool AttemptOhShoot(IEnemy enemy)
        {
            bool ret = false;

            if (CurrentOffHand.HasShotLoaded())
            {
                OffHandShoot(enemy);
                ret = true;
            }

            NumberOfShotsLostToMisfire += DetermineAtksNotShotFromMisfire(CurrentOffHand, 1, 1);

            return(ret);
        }
예제 #3
0
 private bool CurrentOffHandCanSwap()
 {
     return(CurrentOffHand != null &&
            (!CurrentOffHand.HasShotLoaded() ||
             !CurrentOffHand.CanFire()));
 }