Esempio n. 1
0
 private void CheckAbility(DiceRoll diceroll)
 {
     if (diceroll.Type == DiceKind.Defence && diceroll.CheckType == DiceRollCheckType.Combat && Combat.Attacker.Tokens.HasToken <JamToken>())
     {
         Messages.ShowInfo("Captain Feroph is being attacked by a Jammed attacker and gains +1 Evade result");
         diceroll.AddDiceAndShow(DieSide.Success);
     }
 }
Esempio n. 2
0
        private void ModifyDice(DiceRoll roll)
        {
            int enemyShipsAtRangeOne = BoardTools.Board.GetShipsAtRange(Combat.Defender, new Vector2(0, 1), Team.Type.Enemy).Count;

            if (Combat.AttackStep == CombatStep.Defence && Combat.Defender == HostShip && enemyShipsAtRangeOne > 0)
            {
                Messages.ShowInfo(HostShip.PilotInfo.PilotName + " gains 1 Evade die because at least one enemy is at range 1 of her");
                roll.AddDiceAndShow(DieSide.Success);
            }
        }
Esempio n. 3
0
 protected virtual void ApplyReinforceEffect(DiceRoll diceroll)
 {
     if (diceroll.Type == DiceKind.Defence && diceroll.CheckType == DiceRollCheckType.Combat)
     {
         if (Editions.Edition.Current.ReinforceEffectCanBeUsed(Facing))
         {
             Messages.ShowInfo("Reinforce has added an Evade result");
             diceroll.AddDiceAndShow(DieSide.Success);
         }
     }
 }
Esempio n. 4
0
 private void AddEvadeDie(DiceRoll diceroll)
 {
     Messages.ShowInfo("C-3PO: added evade for correct guess");
     diceroll.AddDiceAndShow(DieSide.Success);
 }
Esempio n. 5
0
 public override void EvadeDiceModification(DiceRoll diceRoll)
 {
     diceRoll.AddDiceAndShow(DieSide.Success);
 }