Exemplo n.º 1
0
 private void CancelPilotCrits(Ship.GenericShip ship, DamageDeckCard.GenericDamageCard crit, EventArgs e)
 {
     if (crit.Type == CriticalCardType.Pilot)
     {
         Messages.ShowInfo("Determination: Crit with \"Pilot\" trait is discarded");
         crit = null;
     }
 }
Exemplo n.º 2
0
        public void Initilize(DamageDeckCard.GenericDamageCard critCard)
        {
            CritCard = critCard;

            string cancelType = (critCard.CancelDiceResults.Count == 0) ? "Discard" : "Try to discard";

            Name = critCard.Name + ": " + cancelType;

            ImageUrl = critCard.ImageUrl;
        }
Exemplo n.º 3
0
 private void MaarekStelePilotAbility(GenericShip ship, DamageDeckCard.GenericDamageCard crit, EventArgs e)
 {
     if ((e as DamageSourceEventArgs) == null)
     {
         return;
     }
     else if ((((e as DamageSourceEventArgs).Source) as GenericShip).ShipId == HostShip.ShipId)
     {
         if ((e as DamageSourceEventArgs).DamageType == DamageTypes.ShipAttack)
         {
             RegisterAbilityTrigger(TriggerTypes.OnFaceupCritCardReadyToBeDealt, ShowDecision);
         }
     }
 }
Exemplo n.º 4
0
 private void DealCard(DamageDeckCard.GenericDamageCard critCard)
 {
     Combat.CurrentCriticalHitCard = critCard;
     ConfirmDecision();
 }
Exemplo n.º 5
0
 private void DiscardCrit(DamageDeckCard.GenericDamageCard critCard)
 {
     Selection.ActiveShip.Damage.FlipFaceupCritFacedown(critCard);
     Sounds.PlayShipSound("R2D2-Proud");
     ConfirmDecision();
 }