Reduced number of people needed for a tournament
This commit is contained in:
@@ -161,13 +161,13 @@ public class HallServer extends AbstractServer {
|
||||
});
|
||||
|
||||
_tournamentQueues.put("fotr_queue", new ImmediateRecurringQueue(1000, "fotr_block",
|
||||
CollectionType.ALL_CARDS, "fotrQueue-", "Fellowship SitesBlock", 8,
|
||||
CollectionType.ALL_CARDS, "fotrQueue-", "Fellowship SitesBlock", 4,
|
||||
true, tournamentService, _tournamentPrizeSchemeRegistry.getTournamentPrizes(cardSets, "onDemand"), _pairingMechanismRegistry.getPairingMechanism("singleElimination")));
|
||||
_tournamentQueues.put("movie_queue", new ImmediateRecurringQueue(1000, "movie",
|
||||
CollectionType.ALL_CARDS, "movieQueue-", "Movie SitesBlock", 8,
|
||||
CollectionType.ALL_CARDS, "movieQueue-", "Movie SitesBlock", 4,
|
||||
true, tournamentService, _tournamentPrizeSchemeRegistry.getTournamentPrizes(cardSets, "onDemand"), _pairingMechanismRegistry.getPairingMechanism("singleElimination")));
|
||||
_tournamentQueues.put("expanded_queue", new ImmediateRecurringQueue(1000, "expanded",
|
||||
CollectionType.ALL_CARDS, "expandedQueue-", "Expanded", 8,
|
||||
CollectionType.ALL_CARDS, "expandedQueue-", "Expanded", 4,
|
||||
true, tournamentService, _tournamentPrizeSchemeRegistry.getTournamentPrizes(cardSets, "onDemand"), _pairingMechanismRegistry.getPairingMechanism("singleElimination")));
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
@@ -25,15 +25,11 @@ public class SingleEliminationOnDemandPrizes implements TournamentPrizes{
|
||||
@Override
|
||||
public CardCollection getPrizeForTournament(PlayerStanding playerStanding, int playersCount) {
|
||||
DefaultCardCollection tournamentPrize = new DefaultCardCollection();
|
||||
if (playerStanding.getPoints() == 6) {
|
||||
tournamentPrize.addItem("(S)Booster Choice", 3);
|
||||
tournamentPrize.addItem(getRandom(_promos), 1);
|
||||
} else if (playerStanding.getPoints() == 5) {
|
||||
if (playerStanding.getPoints() == 4) {
|
||||
tournamentPrize.addItem("(S)Booster Choice", 2);
|
||||
tournamentPrize.addItem(getRandom(_promos), 1);
|
||||
} else if (playerStanding.getPoints() == 3) {
|
||||
tournamentPrize.addItem("(S)Booster Choice", 1);
|
||||
tournamentPrize.addItem(getRandom(_promos), 1);
|
||||
tournamentPrize.addItem("(S)Booster Choice", 2);
|
||||
} else {
|
||||
tournamentPrize.addItem("(S)Booster Choice", 1);
|
||||
}
|
||||
@@ -59,6 +55,6 @@ public class SingleEliminationOnDemandPrizes implements TournamentPrizes{
|
||||
|
||||
@Override
|
||||
public String getPrizeDescription() {
|
||||
return "<div class='prizeHint' value='3 wins - 3 boosters and a random promo, 2 wins - 2 boosters and a random promo, 1 win - 1 booster and a random promo, 0 wins - 1 booster'>(3+promo)-(2+promo)-(1+promo)-1</div>";
|
||||
return "<div class='prizeHint' value='2 wins - 2 boosters and a random promo, 1 win - 2 boosters, 0 wins - 1 booster'>(2+promo)-2-1</div>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user