Added support for sale of Alternate Art card types, so that merchant does not break.

This commit is contained in:
marcins78
2014-07-09 14:49:23 +00:00
parent 2ee404c528
commit 2078c03d31
2 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ public class RarityBasedMerchant implements Merchant {
return 50;
else if (cardRarity.equals("U") || cardRarity.equals("S"))
return 100;
else if (cardRarity.equals("R") || cardRarity.equals("P"))
else if (cardRarity.equals("R") || cardRarity.equals("P") || cardRarity.equals("A"))
return 1000;
else if (cardRarity.equals("X"))
return 2000;

View File

@@ -14,7 +14,7 @@ public class DailyTournamentPrizes implements TournamentPrizes {
@Override
public CardCollection getPrizeForTournament(PlayerStanding playerStanding, int playersCount) {
DefaultCardCollection tournamentPrize = new DefaultCardCollection();
tournamentPrize.addItem("(S)Booster Choice", (playerStanding.getPlayerWins() + playerStanding.getPlayerByes()) * 2);
tournamentPrize.addItem("(S)Booster Choice", playerStanding.getPoints());
if (tournamentPrize.getAll().size() == 0) {
return null;
@@ -34,6 +34,6 @@ public class DailyTournamentPrizes implements TournamentPrizes {
@Override
public String getPrizeDescription() {
return "2 boosters per win (or bye), max 3 rounds";
return "2 boosters per win (or bye), 1 per loss, max 3 rounds";
}
}