public override void EvadeDiceModification(DiceRoll diceRoll) { if (diceRoll.Blanks > 0) { diceRoll.ChangeOne(DieSide.Blank, DieSide.Success); } else if (diceRoll.Focuses > 0) { diceRoll.ChangeOne(DieSide.Focus, DieSide.Success); } else { Messages.ShowError("Evade Token is spent, but no effect"); } }
public override void EvadeDiceModification(DiceRoll diceRoll) { if (diceRoll.Blanks > 0) { diceRoll.ChangeOne(DieSide.Blank, DieSide.Success); } else if (diceRoll.Focuses > 0) { diceRoll.ChangeOne(DieSide.Focus, DieSide.Success); } else { Messages.ShowError("An Evade Token was spent, but there were no valid dice to change to evade"); } }
private void HandlePalpatineDiceChange(DiceRoll diceroll) { ShipUsingPalpatine.OnImmediatelyAfterRolling -= HandlePalpatineDiceChange; if (PalpatineDieChoice != DieSide.Unknown) { DieSide dieToChange = diceroll.FindDieToChange(PalpatineDieChoice); if (dieToChange == DieSide.Unknown) { Messages.ShowErrorToHuman("Error selecting die to change for Emperor Palpatine."); return; } Messages.ShowInfo(string.Format("Emperor Palpatine changes one '{0}' to {1}.", dieToChange, PalpatineDieChoice)); diceroll.ChangeOne(dieToChange, PalpatineDieChoice, true, true); PalpatineDieChoice = DieSide.Unknown; return; } Messages.ShowErrorToHuman("Error handling die change for Emperor Palpatine"); return; }