protected override void FinishAbility() { Triggers.FinishTrigger(); }
private void FinishAbility() { HostShip.OnCheckCanCoordinate -= ForbitLimitedShips; Triggers.FinishTrigger(); }
private void CleanUp(object sender, System.EventArgs e) { HostShip.OnTokenIsAssigned -= RegisterElectronicBaffle; Triggers.FinishTrigger(); }
private void CleanUp() { HostShip.BeforeFreeActionIsPerformed -= RegisterSpendChargeTrigger; Triggers.FinishTrigger(); }
private static void RemoveModel() { GameObject.Destroy(CurrentBombObject); Triggers.FinishTrigger(); }
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(); }
public override void SkipButton() { Phases.FinishSubPhase(typeof(FreeSelectTargetLockSubPhase)); Triggers.FinishTrigger(); }
private void DefenderLosesShield() { Combat.Defender.LoseShield(); Triggers.FinishTrigger(); }
private void FinishAbility() { IsAbilityUsed = false; Triggers.FinishTrigger(); }
private void Cleanup() { theShipAttacked = null; HostShip.IsCannotAttackSecondTime = true; Triggers.FinishTrigger(); }
public override void ConfirmCrit() { InformCrit.HidePanel(); Triggers.FinishTrigger(); }
private void CleanUp() { Selection.ThisShip.BeforeActionIsPerformed -= PayChargeCost; Triggers.FinishTrigger(); }
private void UpgradeIsSelectedFinish() { Triggers.FinishTrigger(); }
private void TargetIsAllowed() { Triggers.FinishTrigger(); SubPhases.SelectShipSubPhase.SendSelectShipCommand(WrongTarget); }
private void Finish() { UI.HideSkipButton(); Phases.FinishSubPhase(typeof(ActionDecisonSubPhase)); Triggers.FinishTrigger(); }
public void RepairLooseStabilizer() { DiscardEffect(); Triggers.FinishTrigger(); }
protected override void FinishAbility() { HostShip.LoseShield(); Triggers.FinishTrigger(); }
private void FinishReposition() { SelectedManeuverTemplate.DestroyTemplate(); Triggers.FinishTrigger(); }
public override void SkipButton() { Phases.FinishSubPhase(typeof(SubPhases.DutchVanderAbilityTargetSubPhase)); Triggers.FinishTrigger(); }
private void CleanUp() { HostShip.BeforeActionIsPerformed -= SpendCharge; Triggers.FinishTrigger(); }
private void AfterManeuverIsChanged(string maneuverString) { HostShip.SetAssignedManeuver(ShipMovementScript.MovementFromString(maneuverString)); Triggers.FinishTrigger(); }
private void DontUseGunnerAbility(object sender, EventArgs e) { Selection.ChangeActiveShip(Combat.Attacker); Triggers.FinishTrigger(); }
private void PlanToAddExtraDice() { Combat.Defender.AfterGotNumberOfDefenceDice += AddExtraDice; Triggers.FinishTrigger(); }
public void RepairDirectHit() { DiscardEffect(); Triggers.FinishTrigger(); }
public static void HidePanel() { InformCritPanel.gameObject.SetActive(false); Triggers.FinishTrigger(); }
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(); } }
private void CleanUp() { HostShip.BeforeActionIsPerformed -= PayForceCost; Triggers.FinishTrigger(); }
private void FinishAbility() { HostShip.BeforeFreeActionIsPerformed -= RegisterSufferDamage; Triggers.FinishTrigger(); }
public override void ApplyEffect(object sender, EventArgs e) { Host.OnMovementFinish += RegisterCheckCollisionDamage; Host.Tokens.AssignCondition(typeof(Tokens.StunnedPilotSECritToken)); Triggers.FinishTrigger(); }
private void DoAutoRepair() { HostShip.Damage.FlipFaceupCritFacedown(HostShip.Damage.GetFaceupCrits().First()); Sounds.PlayShipSound("Chewbacca"); Triggers.FinishTrigger(); }