spjspj - Modify Rich Man draft to be random

This commit is contained in:
spjspj 2016-05-15 18:50:59 +10:00
parent 218fd088b8
commit 5ee4b5193e
2 changed files with 2 additions and 1 deletions

View file

@ -44,6 +44,7 @@ public class RichManDraftEliminationTournamentType extends TournamentType {
this.limited = true; this.limited = true;
this.cubeBooster = false; this.cubeBooster = false;
this.elimination = true; this.elimination = true;
this.isRandom = true;
} }
} }

View file

@ -67,7 +67,7 @@ public class RichManBoosterDraft extends DraftImpl {
UUID nextId = table.getNext(); UUID nextId = table.getNext();
DraftPlayer next = players.get(nextId); DraftPlayer next = players.get(nextId);
while (true) { while (true) {
List<Card> nextBooster = sets.get(0).createBooster(); List<Card> nextBooster = sets.get(cardNum % sets.size()).createBooster();
next.setBooster(nextBooster); next.setBooster(nextBooster);
if (nextId == startId) { if (nextId == startId) {
break; break;