Tengwar cards for leagues are awarded to the "Trophy" collection.
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user