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:
Chris H
2024-06-22 06:42:29 -04:00
committed by GitHub
parent e0d8bcf490
commit d4469ca736
16 changed files with 384 additions and 58 deletions

View File

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

View File

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