Merge pull request #46 from PhallenCassidy/MyCards-Fix
My Cards corrections
This commit is contained in:
@@ -8,7 +8,7 @@ public final class CollectionType {
|
||||
public final static CollectionType TROPHY = new CollectionType("trophy", "Trophies");
|
||||
public final static CollectionType ALL_CARDS = new CollectionType("default", "All cards");
|
||||
|
||||
public final static CollectionType OWNED_TOURNAMENT_CARDS = new CollectionType("permanent+trophy", "All cards");
|
||||
public final static CollectionType OWNED_TOURNAMENT_CARDS = new CollectionType("permanent+trophy", "My cards");
|
||||
|
||||
private final String _code;
|
||||
private final String _fullName;
|
||||
|
||||
@@ -49,7 +49,7 @@ public class FixedLeaguePrizes implements LeaguePrizes {
|
||||
public CardCollection getPrizeForLeague(int position, int playersCount, int gamesPlayed, int maxGamesPlayed, CollectionType collectionType) {
|
||||
if (collectionType.equals(CollectionType.ALL_CARDS)) {
|
||||
return getPrizeForConstructedLeague(position, playersCount, gamesPlayed, maxGamesPlayed);
|
||||
} else if (collectionType.equals(CollectionType.MY_CARDS)) {
|
||||
} else if (collectionType.equals(CollectionType.MY_CARDS) || collectionType.equals(CollectionType.OWNED_TOURNAMENT_CARDS)) {
|
||||
return getPrizeForCollectorsLeague(position, playersCount, gamesPlayed, maxGamesPlayed);
|
||||
} else {
|
||||
return getPrizeForSealedLeague(position, playersCount, gamesPlayed, maxGamesPlayed);
|
||||
|
||||
Reference in New Issue
Block a user