deck limit decreased to 40. auto generated deck sizes set back to 40
parent
64b40e202a
commit
8841f11d75
|
@ -5,10 +5,12 @@ import java.util.List;
|
||||||
|
|
||||||
public enum MagicDeckConstructionRule {
|
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.")
|
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 final String text;
|
||||||
|
|
||||||
private MagicDeckConstructionRule(final String text) {
|
private MagicDeckConstructionRule(final String text) {
|
||||||
|
@ -22,8 +24,8 @@ public enum MagicDeckConstructionRule {
|
||||||
public static List<MagicDeckConstructionRule> checkDeck(MagicDeck deck) {
|
public static List<MagicDeckConstructionRule> checkDeck(MagicDeck deck) {
|
||||||
ArrayList<MagicDeckConstructionRule> brokenRules = new ArrayList<MagicDeckConstructionRule>();
|
ArrayList<MagicDeckConstructionRule> brokenRules = new ArrayList<MagicDeckConstructionRule>();
|
||||||
|
|
||||||
if(deck.size() < 60) {
|
if(deck.size() < MIN_DECK_SIZE) {
|
||||||
brokenRules.add(Min60Cards);
|
brokenRules.add(MinDeckSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<MagicDeckCardDefinition> countedDeck = MagicDeckCardDefinition.condenseCopyCardList(deck);
|
List<MagicDeckCardDefinition> countedDeck = MagicDeckCardDefinition.condenseCopyCardList(deck);
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Properties;
|
||||||
|
|
||||||
public class MagicPlayerDefinition {
|
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 int MIN_SOURCE=16;
|
||||||
|
|
||||||
private static final String NAME="name";
|
private static final String NAME="name";
|
||||||
|
|
Loading…
Reference in New Issue