Apply pod size to Desktop UI draft view

This commit is contained in:
Chris H
2025-08-01 22:02:45 -04:00
parent b8a5668db6
commit 44c33e2955
2 changed files with 11 additions and 7 deletions

View File

@@ -228,9 +228,9 @@ public enum CSubmenuDraft implements ICDoc {
return;
}
final DeckGroup opponentDecks = FModel.getDecks().getDraft().get(humanDeck.getName());
if (VSubmenuDraft.SINGLETON_INSTANCE.isSingleSelected()) {
// Single opponent
final DeckGroup opponentDecks = FModel.getDecks().getDraft().get(humanDeck.getName());
int indx = 0;
for (@SuppressWarnings("unused") Deck d : opponentDecks.getAiDecks()) {
indx++;
@@ -242,10 +242,16 @@ public enum CSubmenuDraft implements ICDoc {
combo.addItem("Gauntlet");
//combo.addItem("Tournament");
} else {
int size = opponentDecks.getAiDecks().size();
combo.addItem("2");
combo.addItem("3");
combo.addItem("4");
combo.addItem("5");
if (size > 2) {
combo.addItem("3");
}
if (size >= 4) {
combo.addItem("4");
combo.addItem("5");
}
}
}
}