deck limit decreased to 40. auto generated deck sizes set back to 40

master
wait321 2011-10-02 10:06:29 -07:00
parent 64b40e202a
commit 8841f11d75
2 changed files with 6 additions and 4 deletions

View File

@ -5,10 +5,12 @@ import java.util.List;
public enum MagicDeckConstructionRule {
Min60Cards("Decks must have a least 60 cards."),
MinDeckSize("Decks must have a least 40 cards."),
FourCopyLimit("With the exception of basic lands, a deck must have no more than 4 copies of a card.")
;
public static final int MIN_DECK_SIZE = 40;
private final String text;
private MagicDeckConstructionRule(final String text) {
@ -22,8 +24,8 @@ public enum MagicDeckConstructionRule {
public static List<MagicDeckConstructionRule> checkDeck(MagicDeck deck) {
ArrayList<MagicDeckConstructionRule> brokenRules = new ArrayList<MagicDeckConstructionRule>();
if(deck.size() < 60) {
brokenRules.add(Min60Cards);
if(deck.size() < MIN_DECK_SIZE) {
brokenRules.add(MinDeckSize);
}
List<MagicDeckCardDefinition> countedDeck = MagicDeckCardDefinition.condenseCopyCardList(deck);

View File

@ -7,7 +7,7 @@ import java.util.Properties;
public class MagicPlayerDefinition {
private static final int DECK_SIZE=60;
private static final int DECK_SIZE=40;
private static final int MIN_SOURCE=16;
private static final String NAME="name";