mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-13 09:17:59 +00:00
Apply pod size to Desktop UI draft view
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user