mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
I think I see why nobody wanted to do this
This commit is contained in:
@@ -56,7 +56,7 @@ public final class CEditorConstructed extends CDeckEditor<Deck> {
|
||||
private DeckController<Deck> controller;
|
||||
private final List<DeckSection> allSections = new ArrayList<>();
|
||||
private ItemPool<PaperCard> normalPool, avatarPool, planePool, schemePool, conspiracyPool,
|
||||
commanderPool, dungeonPool;
|
||||
commanderPool, dungeonPool, attractionPool;
|
||||
|
||||
CardManager catalogManager;
|
||||
CardManager deckManager;
|
||||
@@ -131,6 +131,9 @@ public final class CEditorConstructed extends CDeckEditor<Deck> {
|
||||
default:
|
||||
}
|
||||
|
||||
allSections.add(DeckSection.Attractions);
|
||||
attractionPool = FModel.getAttractionPool();
|
||||
|
||||
catalogManager = new CardManager(getCDetailPicture(), wantUnique, false, false);
|
||||
deckManager = new CardManager(getCDetailPicture(), false, false, false);
|
||||
deckManager.setAlwaysNonUnique(true);
|
||||
@@ -342,6 +345,9 @@ public final class CEditorConstructed extends CDeckEditor<Deck> {
|
||||
case Dungeon:
|
||||
cmb.addMoveItems(localizer.getMessage("lblAdd"), localizer.getMessage("lbltodungeondeck"));
|
||||
break;
|
||||
case Attractions:
|
||||
cmb.addMoveItems(localizer.getMessage("lblAdd"), localizer.getMessage("lbltoattractiondeck"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -374,6 +380,9 @@ public final class CEditorConstructed extends CDeckEditor<Deck> {
|
||||
case Dungeon:
|
||||
cmb.addMoveItems(localizer.getMessage("lblRemove"), localizer.getMessage("lblfromdungeondeck"));
|
||||
break;
|
||||
case Attractions:
|
||||
cmb.addMoveItems(localizer.getMessage("lblRemove"), localizer.getMessage("lblfromattractiondeck"));
|
||||
break;
|
||||
}
|
||||
if (foilAvailable) {
|
||||
cmb.addMakeFoils();
|
||||
@@ -482,6 +491,12 @@ public final class CEditorConstructed extends CDeckEditor<Deck> {
|
||||
this.getCatalogManager().setAllowMultipleSelections(true);
|
||||
this.getDeckManager().setPool(this.controller.getModel().getOrCreate(DeckSection.Dungeon));
|
||||
break;
|
||||
case Attractions:
|
||||
this.getCatalogManager().setup(ItemManagerConfig.ATTRACTION_POOL);
|
||||
this.getCatalogManager().setPool(attractionPool, true);
|
||||
this.getCatalogManager().setAllowMultipleSelections(true);
|
||||
this.getDeckManager().setPool(this.controller.getModel().getOrCreate(DeckSection.Attractions));
|
||||
break;
|
||||
}
|
||||
case Commander:
|
||||
case Oathbreaker:
|
||||
@@ -506,6 +521,12 @@ public final class CEditorConstructed extends CDeckEditor<Deck> {
|
||||
this.getCatalogManager().setAllowMultipleSelections(false);
|
||||
this.getDeckManager().setPool(this.controller.getModel().getOrCreate(DeckSection.Commander));
|
||||
break;
|
||||
case Attractions:
|
||||
this.getCatalogManager().setup(ItemManagerConfig.ATTRACTION_POOL);
|
||||
this.getCatalogManager().setPool(attractionPool, true);
|
||||
this.getCatalogManager().setAllowMultipleSelections(true);
|
||||
this.getDeckManager().setPool(this.controller.getModel().getOrCreate(DeckSection.Attractions));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ public final class CEditorLimited extends CDeckEditor<DeckGroup> {
|
||||
|
||||
allSections.add(DeckSection.Main);
|
||||
allSections.add(DeckSection.Conspiracy);
|
||||
allSections.add(DeckSection.Attractions);
|
||||
|
||||
this.getCbxSection().removeAllItems();
|
||||
for (DeckSection section : allSections) {
|
||||
@@ -221,6 +222,10 @@ public final class CEditorLimited extends CDeckEditor<DeckGroup> {
|
||||
this.getCatalogManager().setup(ItemManagerConfig.DRAFT_CONSPIRACY);
|
||||
this.getDeckManager().setPool(getHumanDeck().getOrCreate(DeckSection.Conspiracy));
|
||||
break;
|
||||
case Attractions:
|
||||
this.getCatalogManager().setup(ItemManagerConfig.ATTRACTION_POOL);
|
||||
this.getDeckManager().setPool(getHumanDeck().getOrCreate(DeckSection.Attractions));
|
||||
break;
|
||||
case Main:
|
||||
this.getCatalogManager().setup(getScreen() == FScreen.DECK_EDITOR_DRAFT ? ItemManagerConfig.DRAFT_POOL : ItemManagerConfig.SEALED_POOL);
|
||||
this.getDeckManager().setPool(getHumanDeck().getOrCreate(DeckSection.Main));
|
||||
|
||||
Reference in New Issue
Block a user