Tengwar cards for leagues are awarded to the "Trophy" collection.

This commit is contained in:
marcins78
2014-01-09 15:45:46 +00:00
parent 21b6de8190
commit b88f0ca630
5 changed files with 8 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ public class ConstructedLeagueData implements LeagueData {
collectionsManager.addItemsToPlayerCollection(true, "End of league prizes", leagueStanding.getPlayerName(), _prizeCollectionType, leaguePrize.getAll().values());
final CardCollection leagueTrophies = _leaguePrizes.getTrophiesForLeague(leagueStanding.getStanding(), leagueStandings.size(), leagueStanding.getGamesPlayed(), maxGamesCount, _collectionType);
if (leagueTrophies != null)
collectionsManager.addItemsToPlayerCollection(true, "End of league prizes", leagueStanding.getPlayerName(), CollectionType.TROPHY, leagueTrophies.getAll().values());
collectionsManager.addItemsToPlayerCollection(true, "End of league trophies", leagueStanding.getPlayerName(), CollectionType.TROPHY, leagueTrophies.getAll().values());
}
status++;
}

View File

@@ -58,6 +58,10 @@ public class FixedLeaguePrizes implements LeaguePrizes {
@Override
public CardCollection getTrophiesForLeague(int position, int playersCount, int gamesPlayed, int maxGamesPlayed, CollectionType collectionType) {
DefaultCardCollection prize = new DefaultCardCollection();
prize.addItem("(S)Tengwar", getTengwarCount(position));
if (prize.getAll().size() > 0)
return prize;
return null;
}
@@ -73,7 +77,6 @@ public class FixedLeaguePrizes implements LeaguePrizes {
private CardCollection getPrizeForSealedLeague(int position, int playersCount, int gamesPlayed, int maxGamesPlayed) {
DefaultCardCollection prize = new DefaultCardCollection();
prize.addItem("(S)Booster Choice", getSealedBoosterCount(position));
prize.addItem("(S)Tengwar", getTengwarCount(position));
addPrizes(prize, getRandomFoil(_rares, getRandomRareFoilCount(position)));
if (prize.getAll().size() > 0)
return prize;
@@ -106,7 +109,6 @@ public class FixedLeaguePrizes implements LeaguePrizes {
private CardCollection getPrizeForCollectorsLeague(int position, int playersCount, int gamesPlayed, int maxGamesPlayed) {
DefaultCardCollection prize = new DefaultCardCollection();
prize.addItem("(S)Booster Choice", getCollectorsBoosterCount(position));
prize.addItem("(S)Tengwar", getTengwarCount(position));
addPrizes(prize, getRandomFoil(_rares, getRandomRareFoilCount(position)));
if (prize.getAll().size() > 0)
return prize;
@@ -135,7 +137,6 @@ public class FixedLeaguePrizes implements LeaguePrizes {
private CardCollection getPrizeForConstructedLeague(int position, int playersCount, int gamesPlayed, int maxGamesPlayed) {
DefaultCardCollection prize = new DefaultCardCollection();
prize.addItem("(S)Booster Choice", getConstructedBoosterCount(position));
prize.addItem("(S)Tengwar", getTengwarCount(position));
addPrizes(prize, getRandomFoil(_rares, getRandomRareFoilCount(position)));
if (prize.getAll().size() > 0)
return prize;

View File

@@ -72,7 +72,7 @@ public class NewConstructedLeagueData implements LeagueData {
collectionsManager.addItemsToPlayerCollection(true, "End of league prizes", leagueStanding.getPlayerName(), _prizeCollectionType, leaguePrize.getAll().values());
final CardCollection leagueTrophies = _leaguePrizes.getTrophiesForLeague(leagueStanding.getStanding(), leagueStandings.size(), leagueStanding.getGamesPlayed(), maxGamesPlayed, _collectionType);
if (leagueTrophies != null)
collectionsManager.addItemsToPlayerCollection(true, "End of league prizes", leagueStanding.getPlayerName(), CollectionType.TROPHY, leagueTrophies.getAll().values());
collectionsManager.addItemsToPlayerCollection(true, "End of league trophies", leagueStanding.getPlayerName(), CollectionType.TROPHY, leagueTrophies.getAll().values());
}
status++;
}

View File

@@ -95,7 +95,7 @@ public class NewSealedLeagueData implements LeagueData {
collectionsManager.addItemsToPlayerCollection(true, "End of league prizes", leagueStanding.getPlayerName(), _prizeCollectionType, leaguePrize.getAll().values());
final CardCollection leagueTrophies = _leaguePrizes.getTrophiesForLeague(leagueStanding.getStanding(), leagueStandings.size(), leagueStanding.getGamesPlayed(), maxGamesTotal, _collectionType);
if (leagueTrophies != null)
collectionsManager.addItemsToPlayerCollection(true, "End of league prizes", leagueStanding.getPlayerName(), CollectionType.TROPHY, leagueTrophies.getAll().values());
collectionsManager.addItemsToPlayerCollection(true, "End of league trophies", leagueStanding.getPlayerName(), CollectionType.TROPHY, leagueTrophies.getAll().values());
}
status++;
}

View File

@@ -96,7 +96,7 @@ public class SealedLeagueData implements LeagueData {
collectionsManager.addItemsToPlayerCollection(true, "End of league prizes", leagueStanding.getPlayerName(), _prizeCollectionType, leaguePrize.getAll().values());
final CardCollection leagueTrophies = _leaguePrizes.getTrophiesForLeague(leagueStanding.getStanding(), leagueStandings.size(), leagueStanding.getGamesPlayed(), maxGamesPlayed, _collectionType);
if (leagueTrophies != null)
collectionsManager.addItemsToPlayerCollection(true, "End of league prizes", leagueStanding.getPlayerName(), CollectionType.TROPHY, leagueTrophies.getAll().values());
collectionsManager.addItemsToPlayerCollection(true, "End of league trophies", leagueStanding.getPlayerName(), CollectionType.TROPHY, leagueTrophies.getAll().values());
}
status++;
}