Reduced number of people needed for a tournament

This commit is contained in:
marcin.sciesinski
2019-09-23 18:13:34 -07:00
parent 1a8ba7b7eb
commit 02c52d5d06
2 changed files with 6 additions and 10 deletions

View File

@@ -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");

View File

@@ -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>";
}
}