mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Add remaining Conspiracy cards
- Archdemon of Paliano - Canal Dredger - Deal Broker - Lore Seeker
This commit is contained in:
@@ -122,6 +122,10 @@ public class CEditorDraftingProcess extends ACEditorBase<PaperCard, DeckGroup> i
|
||||
return;
|
||||
}
|
||||
|
||||
if (boosterDraft.getHumanPlayer().hasArchdemonCurse()) {
|
||||
card = boosterDraft.getHumanPlayer().pickFromArchdemonCurse(boosterDraft.getHumanPlayer().nextChoice());
|
||||
}
|
||||
|
||||
// Verify if card is in the activate pack?
|
||||
this.getDeckManager().addItem(card, 1);
|
||||
|
||||
@@ -144,6 +148,7 @@ public class CEditorDraftingProcess extends ACEditorBase<PaperCard, DeckGroup> i
|
||||
else {
|
||||
// TODO Deal Broker
|
||||
// Offer trades before saving
|
||||
boosterDraft.postDraftActions();
|
||||
|
||||
this.saveDraft();
|
||||
}
|
||||
@@ -178,9 +183,25 @@ public class CEditorDraftingProcess extends ACEditorBase<PaperCard, DeckGroup> i
|
||||
int packNumber = ((BoosterDraft) boosterDraft).getCurrentBoosterIndex() + 1;
|
||||
|
||||
this.getCatalogManager().setCaption(localizer.getMessage("lblPackNCards", String.valueOf(packNumber)));
|
||||
this.getCatalogManager().setPool(list);
|
||||
|
||||
int count = list.countAll();
|
||||
|
||||
if (boosterDraft.getHumanPlayer().hasArchdemonCurse()) {
|
||||
// Only show facedown cards with no information
|
||||
this.getCatalogManager().setPool(generateFakePaperCards(count));
|
||||
} else {
|
||||
this.getCatalogManager().setPool(list);
|
||||
}
|
||||
} // showChoices()
|
||||
|
||||
private ItemPool<PaperCard> generateFakePaperCards(int count) {
|
||||
ItemPool<PaperCard> pool = new ItemPool<>(PaperCard.class);
|
||||
for (int i = 0; i < count; i++) {
|
||||
pool.add(PaperCard.FAKE_CARD);
|
||||
}
|
||||
return pool;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* getPlayersDeck.
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package forge;
|
||||
|
||||
import forge.card.CardEdition;
|
||||
import forge.deck.CardPool;
|
||||
import forge.deck.Deck;
|
||||
import forge.game.card.Card;
|
||||
import forge.gamemodes.limited.DraftPack;
|
||||
import forge.gamemodes.limited.IBoosterDraft;
|
||||
import forge.gamemodes.limited.IDraftLog;
|
||||
import forge.gamemodes.limited.LimitedPlayer;
|
||||
@@ -79,6 +81,11 @@ public class BoosterDraftTest implements IBoosterDraft {
|
||||
return hasNextChoice();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DraftPack addBooster(CardEdition edition) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<Card> getChosenCards() {
|
||||
return null;
|
||||
}
|
||||
@@ -111,4 +118,7 @@ public class BoosterDraftTest implements IBoosterDraft {
|
||||
public LimitedPlayer getPlayer(int i) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postDraftActions() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user