forked from External/mage
GUI enchancements (themes, sound notification, deck validation) (#6755)
GUI enchancements (themes, sound notification, deck validation)
This commit is contained in:
parent
8c4c2728d6
commit
99d5eafc8a
128 changed files with 1988 additions and 11320 deletions
|
|
@ -37,6 +37,10 @@ public class Constructed extends DeckValidator {
|
|||
super(name);
|
||||
}
|
||||
|
||||
protected Constructed(String name, String shortName) {
|
||||
super(name, shortName);
|
||||
}
|
||||
|
||||
public List<String> getSetCodes() {
|
||||
return setCodes;
|
||||
}
|
||||
|
|
@ -54,6 +58,7 @@ public class Constructed extends DeckValidator {
|
|||
@Override
|
||||
public boolean validate(Deck deck) {
|
||||
boolean valid = true;
|
||||
invalid.clear();
|
||||
//20091005 - 100.2a
|
||||
if (deck.getCards().size() < getDeckMinSize()) {
|
||||
invalid.put("Deck", "Must contain at least " + getDeckMinSize() + " cards: has only " + deck.getCards().size() + " cards");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue