Esempio n. 1
0
 protected virtual void DiceCheckFinished()
 {
     HostShip.Tokens.AssignTokens(() => new Tokens.FocusToken(HostShip), DiceCheckRoll.Focuses, () => {
         HostShip.Tokens.AssignTokens(() => new Tokens.EvadeToken(HostShip), DiceCheckRoll.Successes, () =>
         {
             AbilityDiceCheck.ConfirmCheck();
         });
     });
 }
Esempio n. 2
0
 private void FinishAction()
 {
     if (DiceCheckRoll.RegularSuccesses > 0)
     {
         SufferNegativeEffect(AbilityDiceCheck.ConfirmCheck);
     }
     else
     {
         AbilityDiceCheck.ConfirmCheck();
     }
 }
Esempio n. 3
0
 private void DiceCheckFinished()
 {
     if (DiceCheckRoll.RegularSuccesses > 0)
     {
         Messages.ShowInfo(HostName + " exposes one damage card");
         HostShip.Damage.ExposeRandomFacedownCard(AbilityDiceCheck.ConfirmCheck);
     }
     else
     {
         AbilityDiceCheck.ConfirmCheck();
     }
 }
Esempio n. 4
0
 protected virtual void DiceCheckFinished()
 {
     // Check our results for accidental decloaking.  If we got a focus result, we have to decloak.
     if (DiceCheckRoll.Focuses > 0)
     {
         Messages.ShowInfo("Cloaking Device: " + HostShip.PilotInfo.PilotName + "'s cloaking device deactivates.");
         ShowDecloakDecision(AbilityDiceCheck.ConfirmCheck);
     }
     else
     {
         // We aren't automatically decloaking.  As our trigger was just finished, we'll need to re-register it.
         AbilityDiceCheck.ConfirmCheck();
         Phases.Events.OnPlanningPhaseStart += RegisterDecloakChance;
     }
 }
Esempio n. 5
0
 private void DiceCheckFinished()
 {
     if (DiceCheckRoll.Successes > 0)
     {
         Messages.ShowInfo(HostUpgrade.UpgradeInfo.Name + " Gain 1 Jam Token");
         HostShip.Tokens.AssignToken(
             new JamToken(HostShip, HostShip.Owner),
             AbilityDiceCheck.ConfirmCheck
             );
     }
     else
     {
         AbilityDiceCheck.ConfirmCheck();
     }
 }
Esempio n. 6
0
 private void FinishAction()
 {
     if (DiceCheckRoll.RegularSuccesses > 0)
     {
         HostShip.Damage.SufferFacedownDamageCard(
             new DamageSourceEventArgs()
         {
             Source     = HostShip,
             DamageType = DamageTypes.CardAbility
         },
             AbilityDiceCheck.ConfirmCheck
             );
     }
     else
     {
         AbilityDiceCheck.ConfirmCheck();
     }
 }
Esempio n. 7
0
 private void CheckDamage()
 {
     if (DiceCheckRoll.Focuses > 0)
     {
         Messages.ShowInfo("DRK-1 Probe Droid is destroyed");
         HostShip.Damage.TryResolveDamage(
             1,
             0,
             new DamageSourceEventArgs() {
                 DamageType = DamageTypes.CardAbility,
                 Source = HostShip
             },
             AbilityDiceCheck.ConfirmCheck
         );
     }
     else
     {
         Messages.ShowInfo("DRK-1 Probe Droid suffers no damage");
         AbilityDiceCheck.ConfirmCheck();
     }
 }
 private void CleanUpMultiSpectralCamouflage()
 {
     Selection.ActiveShip = TargetingShip;
     Selection.ThisShip   = TargetingShip;
     AbilityDiceCheck.ConfirmCheck();
 }