protected override void FinishAbility()
 {
     Triggers.FinishTrigger();
 }
Example #2
0
 private void FinishAbility()
 {
     HostShip.OnCheckCanCoordinate -= ForbitLimitedShips;
     Triggers.FinishTrigger();
 }
Example #3
0
 private void CleanUp(object sender, System.EventArgs e)
 {
     HostShip.OnTokenIsAssigned -= RegisterElectronicBaffle;
     Triggers.FinishTrigger();
 }
Example #4
0
 private void CleanUp()
 {
     HostShip.BeforeFreeActionIsPerformed -= RegisterSpendChargeTrigger;
     Triggers.FinishTrigger();
 }
Example #5
0
 private static void RemoveModel()
 {
     GameObject.Destroy(CurrentBombObject);
     Triggers.FinishTrigger();
 }
Example #6
0
 private void ShieldRemove(object sender, EventArgs e)
 {
     Messages.ShowInfoToHuman($"{Combat.Defender.PilotInfo.PilotName} had a Shield removed by Plasma Torpedoes");
     Combat.Defender.LoseShield();
     Triggers.FinishTrigger();
 }
Example #7
0
 public override void SkipButton()
 {
     Phases.FinishSubPhase(typeof(FreeSelectTargetLockSubPhase));
     Triggers.FinishTrigger();
 }
Example #8
0
 private void DefenderLosesShield()
 {
     Combat.Defender.LoseShield();
     Triggers.FinishTrigger();
 }
Example #9
0
 private void FinishAbility()
 {
     IsAbilityUsed = false;
     Triggers.FinishTrigger();
 }
Example #10
0
 private void Cleanup()
 {
     theShipAttacked = null;
     HostShip.IsCannotAttackSecondTime = true;
     Triggers.FinishTrigger();
 }
Example #11
0
 public override void ConfirmCrit()
 {
     InformCrit.HidePanel();
     Triggers.FinishTrigger();
 }
Example #12
0
 private void CleanUp()
 {
     Selection.ThisShip.BeforeActionIsPerformed -= PayChargeCost;
     Triggers.FinishTrigger();
 }
 private void UpgradeIsSelectedFinish()
 {
     Triggers.FinishTrigger();
 }
Example #14
0
        private void TargetIsAllowed()
        {
            Triggers.FinishTrigger();

            SubPhases.SelectShipSubPhase.SendSelectShipCommand(WrongTarget);
        }
Example #15
0
 private void Finish()
 {
     UI.HideSkipButton();
     Phases.FinishSubPhase(typeof(ActionDecisonSubPhase));
     Triggers.FinishTrigger();
 }
Example #16
0
 public void RepairLooseStabilizer()
 {
     DiscardEffect();
     Triggers.FinishTrigger();
 }
Example #17
0
 protected override void FinishAbility()
 {
     HostShip.LoseShield();
     Triggers.FinishTrigger();
 }
Example #18
0
 private void FinishReposition()
 {
     SelectedManeuverTemplate.DestroyTemplate();
     Triggers.FinishTrigger();
 }
Example #19
0
 public override void SkipButton()
 {
     Phases.FinishSubPhase(typeof(SubPhases.DutchVanderAbilityTargetSubPhase));
     Triggers.FinishTrigger();
 }
 private void CleanUp()
 {
     HostShip.BeforeActionIsPerformed -= SpendCharge;
     Triggers.FinishTrigger();
 }
Example #21
0
        private void AfterManeuverIsChanged(string maneuverString)
        {
            HostShip.SetAssignedManeuver(ShipMovementScript.MovementFromString(maneuverString));

            Triggers.FinishTrigger();
        }
Example #22
0
 private void DontUseGunnerAbility(object sender, EventArgs e)
 {
     Selection.ChangeActiveShip(Combat.Attacker);
     Triggers.FinishTrigger();
 }
Example #23
0
        private void PlanToAddExtraDice()
        {
            Combat.Defender.AfterGotNumberOfDefenceDice += AddExtraDice;

            Triggers.FinishTrigger();
        }
Example #24
0
 public void RepairDirectHit()
 {
     DiscardEffect();
     Triggers.FinishTrigger();
 }
Example #25
0
 public static void HidePanel()
 {
     InformCritPanel.gameObject.SetActive(false);
     Triggers.FinishTrigger();
 }
Example #26
0
        private void StartSubphaseForWesJansonPilotAbility(object sender, System.EventArgs e)
        {
            //grab a list of tokens that wes can remove
            var wes_list = Combat.Defender.Tokens.GetAllTokens()
                           .Where(t => t is Tokens.BlueTargetLockToken || t is Tokens.FocusToken || t is Tokens.EvadeToken)
                           .ToList();

            //don't bother with the ability if the defender has no tokens to remove.
            if (wes_list.Count > 0)
            {
                var pilotAbilityDecision = (WesJansonDecisionSubPhase)Phases.StartTemporarySubPhaseNew(
                    Name,
                    typeof(WesJansonDecisionSubPhase),
                    Triggers.FinishTrigger
                    );

                pilotAbilityDecision.InfoText = "Use Wes Janson's ability?";

                pilotAbilityDecision.ShowSkipButton = true;

                //helper variables
                int numTL = 1;
                int numFT = 1;
                int numET = 1;
                var name  = "default";

                //depending on type of token, change the text box
                wes_list.ForEach(i => {
                    if (i is Tokens.BlueTargetLockToken)
                    {
                        name = "Remove Target Lock";
                        if (numTL >= 2)
                        {
                            name += " " + numTL;
                        }
                        numTL++;
                    }
                    else if (i is Tokens.FocusToken)
                    {
                        name = "Remove Focus Token";
                        if (numFT >= 2)
                        {
                            name += " " + numFT;
                        }
                        numFT++;
                    }
                    else if (i is Tokens.EvadeToken)
                    {
                        name = "Remove Evade Token";
                        if (numET >= 2)
                        {
                            name += " " + numET;
                        }
                        numET++;
                    }
                    //add appropriate choice for player
                    pilotAbilityDecision.AddDecision(name, delegate { UseWesJansonAbility(i); });
                });

                //AI presses first button in decision dialog
                pilotAbilityDecision.DefaultDecisionName = pilotAbilityDecision.GetDecisions().First().Name;

                pilotAbilityDecision.Start();
            }
            else
            {
                Triggers.FinishTrigger();
            }
        }
Example #27
0
 private void CleanUp()
 {
     HostShip.BeforeActionIsPerformed -= PayForceCost;
     Triggers.FinishTrigger();
 }
Example #28
0
 private void FinishAbility()
 {
     HostShip.BeforeFreeActionIsPerformed -= RegisterSufferDamage;
     Triggers.FinishTrigger();
 }
Example #29
0
 public override void ApplyEffect(object sender, EventArgs e)
 {
     Host.OnMovementFinish += RegisterCheckCollisionDamage;
     Host.Tokens.AssignCondition(typeof(Tokens.StunnedPilotSECritToken));
     Triggers.FinishTrigger();
 }
Example #30
0
 private void DoAutoRepair()
 {
     HostShip.Damage.FlipFaceupCritFacedown(HostShip.Damage.GetFaceupCrits().First());
     Sounds.PlayShipSound("Chewbacca");
     Triggers.FinishTrigger();
 }