Add remaining Conspiracy cards

- Archdemon of Paliano
- Canal Dredger
- Deal Broker
- Lore Seeker
This commit is contained in:
Chris H
2024-06-22 10:18:53 -04:00
parent b9829eef92
commit 33f34231f4
14 changed files with 348 additions and 47 deletions

View File

@@ -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.

View File

@@ -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() {}
}