mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Improve prompt for cleanup phase
This commit is contained in:
@@ -648,12 +648,11 @@ public class PlayerControllerHuman extends PlayerController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Card> chooseCardsToDiscardToMaximumHandSize(int nDiscard) {
|
public List<Card> chooseCardsToDiscardToMaximumHandSize(int nDiscard) {
|
||||||
final int n = player.getZone(ZoneType.Hand).size();
|
|
||||||
final int max = player.getMaxHandSize();
|
final int max = player.getMaxHandSize();
|
||||||
|
|
||||||
InputSelectCardsFromList inp = new InputSelectCardsFromList(nDiscard, nDiscard, player.getZone(ZoneType.Hand).getCards());
|
InputSelectCardsFromList inp = new InputSelectCardsFromList(nDiscard, nDiscard, player.getZone(ZoneType.Hand).getCards());
|
||||||
String msgFmt = "Cleanup Phase: You can only have a maximum of %d cards, you currently have %d cards in your hand - select %d card(s) to discard";
|
String message = "Cleanup Phase\nSelect " + nDiscard + " card" + (nDiscard > 1 ? "s" : "") +
|
||||||
String message = String.format(msgFmt, max, n, nDiscard);
|
" to discard to bring your hand down to the maximum of " + max + " cards.";
|
||||||
inp.setMessage(message);
|
inp.setMessage(message);
|
||||||
inp.setCancelAllowed(false);
|
inp.setCancelAllowed(false);
|
||||||
inp.showAndWait();
|
inp.showAndWait();
|
||||||
|
|||||||
Reference in New Issue
Block a user