protected virtual void StartQuestionSubphase(object sender, System.EventArgs e) { BiggsDarklighterDecisionSubPhase selectBiggsDarklighterSubPhase = (BiggsDarklighterDecisionSubPhase)Phases.StartTemporarySubPhaseNew( Name, typeof(BiggsDarklighterDecisionSubPhase), Triggers.FinishTrigger ); selectBiggsDarklighterSubPhase.InfoText = "Use " + Name + "?"; if (curToDamage.AssignedDamageDiceroll.RegularSuccesses > 0) { selectBiggsDarklighterSubPhase.AddDecision("Suffer one damage to cancel one hit.", delegate { PreventDamage(DieSide.Success); }); selectBiggsDarklighterSubPhase.AddTooltip("Suffer one damage to cancel one hit.", HostShip.ImageUrl); } if (curToDamage.AssignedDamageDiceroll.CriticalSuccesses > 0) { selectBiggsDarklighterSubPhase.AddDecision("Suffer one critical damage to cancel one crit.", delegate { PreventDamage(DieSide.Crit); }); selectBiggsDarklighterSubPhase.AddTooltip("Suffer one critical damage to cancel one crit.", HostShip.ImageUrl); } selectBiggsDarklighterSubPhase.AddDecision("No", delegate { DecisionSubPhase.ConfirmDecision(); }); selectBiggsDarklighterSubPhase.DefaultDecisionName = GetDefaultDecision(); selectBiggsDarklighterSubPhase.ShowSkipButton = true; selectBiggsDarklighterSubPhase.DecisionOwner = HostShip.Owner; selectBiggsDarklighterSubPhase.Start(); }
protected virtual void StartQuestionSubphase(object sender, System.EventArgs e) { BiggsDarklighterDecisionSubPhase selectBiggsDarklighterSubPhase = (BiggsDarklighterDecisionSubPhase)Phases.StartTemporarySubPhaseNew( Name, typeof(BiggsDarklighterDecisionSubPhase), Triggers.FinishTrigger ); selectBiggsDarklighterSubPhase.DescriptionShort = Name; selectBiggsDarklighterSubPhase.DescriptionLong = "You may suffer 1 Hit or Crit damage to cancel 1 matching result"; selectBiggsDarklighterSubPhase.ImageSource = HostShip; if (curToDamage.AssignedDamageDiceroll.RegularSuccesses > 0) { selectBiggsDarklighterSubPhase.AddDecision("Redirect Hit damage", delegate { PreventDamage(DieSide.Success); }); selectBiggsDarklighterSubPhase.AddTooltip("Redirect Hit damage", HostShip.ImageUrl); } if (curToDamage.AssignedDamageDiceroll.CriticalSuccesses > 0) { selectBiggsDarklighterSubPhase.AddDecision("Redirect Crit damage", delegate { PreventDamage(DieSide.Crit); }); selectBiggsDarklighterSubPhase.AddTooltip("Redirect Crit damage", HostShip.ImageUrl); } selectBiggsDarklighterSubPhase.AddDecision("No", delegate { DecisionSubPhase.ConfirmDecision(); }); selectBiggsDarklighterSubPhase.DefaultDecisionName = GetDefaultDecision(); selectBiggsDarklighterSubPhase.ShowSkipButton = true; selectBiggsDarklighterSubPhase.DecisionOwner = HostShip.Owner; selectBiggsDarklighterSubPhase.Start(); }