Merge branch 'master' into Attractions

This commit is contained in:
Jetz
2024-06-23 11:23:47 -04:00
426 changed files with 921 additions and 108 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