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");
}
}
}
}

View File

@@ -83,8 +83,6 @@ public class BoosterDraft implements IBoosterDraft {
if (!draft.generateProduct()) {
return null;
}
// Choose the amount of players
draft.initializeBoosters();
return draft;
@@ -164,8 +162,8 @@ public class BoosterDraft implements IBoosterDraft {
// If this is metaset, edtion will be null
if (edition != null) {
doublePickDuringDraft = edition.getDraftOptions().getDoublePick();
// Let's set the pod size to the recommended one for this edition
if (podSize != edition.getDraftOptions().getRecommendedPodSize()) {
// Auto choosing recommended pod size. In the future we may want to allow user to choose
setPodSize(edition.getDraftOptions().getRecommendedPodSize());
}
}