mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Add Spire Phantasm, Agent of Acquisitions, Cogwork Librarian, Leovold's Operative (#5437)
* Next few Draft cards * Code review fixes * Add Spire Phantasm * Add Agent of Acquisitions, Cogwork Librarian, Leovold's Operative * Some small fixes * Getting closer * Now the UI is updating * Switch DraftPack to a delegate class * Fix agent of acquisitions when AI drafts it
This commit is contained in:
@@ -116,12 +116,21 @@ public class CEditorDraftingProcess extends ACEditorBase<PaperCard, DeckGroup> i
|
||||
// can only draft one at a time, regardless of the requested quantity
|
||||
PaperCard card = items.iterator().next().getKey();
|
||||
|
||||
if (boosterDraft.getHumanPlayer().shouldSkipThisPick()) {
|
||||
System.out.println(card + " not drafted because we're skipping this pick");
|
||||
showPackToDraft();
|
||||
return;
|
||||
}
|
||||
|
||||
// Verify if card is in the activate pack?
|
||||
this.getDeckManager().addItem(card, 1);
|
||||
|
||||
// get next booster pack
|
||||
// get next booster pack if we aren't picking again from this pack
|
||||
this.boosterDraft.setChoice(card);
|
||||
showPackToDraft();
|
||||
}
|
||||
|
||||
protected void showPackToDraft() {
|
||||
boolean nextChoice = this.boosterDraft.hasNextChoice();
|
||||
ItemPool<PaperCard> pool = null;
|
||||
if (nextChoice) {
|
||||
|
||||
@@ -58,10 +58,15 @@ public class BoosterDraftTest implements IBoosterDraft {
|
||||
return result;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public void setChoice(final PaperCard c) {
|
||||
public boolean setChoice(final PaperCard c) {
|
||||
System.out.println(c.getName());
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user