protected override void FinishAbility()
 {
     Triggers.FinishTrigger();
 }
Esempio n. 2
0
 private void FinishAbility()
 {
     HostShip.OnCheckCanCoordinate -= ForbitLimitedShips;
     Triggers.FinishTrigger();
 }
Esempio n. 3
0
 private void CleanUp(object sender, System.EventArgs e)
 {
     HostShip.OnTokenIsAssigned -= RegisterElectronicBaffle;
     Triggers.FinishTrigger();
 }
Esempio n. 4
0
 private void CleanUp()
 {
     HostShip.BeforeFreeActionIsPerformed -= RegisterSpendChargeTrigger;
     Triggers.FinishTrigger();
 }
Esempio n. 5
0
 private static void RemoveModel()
 {
     GameObject.Destroy(CurrentBombObject);
     Triggers.FinishTrigger();
 }
Esempio n. 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();
 }
Esempio n. 7
0
 public override void SkipButton()
 {
     Phases.FinishSubPhase(typeof(FreeSelectTargetLockSubPhase));
     Triggers.FinishTrigger();
 }
Esempio n. 8
0
 private void DefenderLosesShield()
 {
     Combat.Defender.LoseShield();
     Triggers.FinishTrigger();
 }
Esempio n. 9
0
 private void FinishAbility()
 {
     IsAbilityUsed = false;
     Triggers.FinishTrigger();
 }
Esempio n. 10
0
 private void Cleanup()
 {
     theShipAttacked = null;
     HostShip.IsCannotAttackSecondTime = true;
     Triggers.FinishTrigger();
 }
Esempio n. 11
0
 public override void ConfirmCrit()
 {
     InformCrit.HidePanel();
     Triggers.FinishTrigger();
 }
Esempio n. 12
0
 private void CleanUp()
 {
     Selection.ThisShip.BeforeActionIsPerformed -= PayChargeCost;
     Triggers.FinishTrigger();
 }
 private void UpgradeIsSelectedFinish()
 {
     Triggers.FinishTrigger();
 }
Esempio n. 14
0
        private void TargetIsAllowed()
        {
            Triggers.FinishTrigger();

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

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

            Triggers.FinishTrigger();
        }
Esempio n. 24
0
 public void RepairDirectHit()
 {
     DiscardEffect();
     Triggers.FinishTrigger();
 }
Esempio n. 25
0
 public static void HidePanel()
 {
     InformCritPanel.gameObject.SetActive(false);
     Triggers.FinishTrigger();
 }
Esempio n. 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();
            }
        }
Esempio n. 27
0
 private void CleanUp()
 {
     HostShip.BeforeActionIsPerformed -= PayForceCost;
     Triggers.FinishTrigger();
 }
Esempio n. 28
0
 private void FinishAbility()
 {
     HostShip.BeforeFreeActionIsPerformed -= RegisterSufferDamage;
     Triggers.FinishTrigger();
 }
Esempio n. 29
0
 public override void ApplyEffect(object sender, EventArgs e)
 {
     Host.OnMovementFinish += RegisterCheckCollisionDamage;
     Host.Tokens.AssignCondition(typeof(Tokens.StunnedPilotSECritToken));
     Triggers.FinishTrigger();
 }
Esempio n. 30
0
 private void DoAutoRepair()
 {
     HostShip.Damage.FlipFaceupCritFacedown(HostShip.Damage.GetFaceupCrits().First());
     Sounds.PlayShipSound("Chewbacca");
     Triggers.FinishTrigger();
 }