2013-04-12 19:32:25 -07:00
|
|
|
package magic.generator;
|
|
|
|
|
|
|
|
import magic.model.MagicCardDefinition;
|
|
|
|
import magic.model.MagicCondensedDeck;
|
2014-03-13 03:24:17 -07:00
|
|
|
import magic.model.MagicDeckProfile;
|
2013-04-12 19:32:25 -07:00
|
|
|
import magic.model.MagicSubType;
|
|
|
|
|
2014-03-13 08:20:49 -07:00
|
|
|
public class Human_Law_DeckGenerator extends RandomDeckGenerator {
|
2013-04-12 19:32:25 -07:00
|
|
|
|
|
|
|
private static final String colorText = "w";
|
|
|
|
private static final String[] cards = {
|
2013-06-23 18:33:35 -07:00
|
|
|
"Champion of the Parish",
|
|
|
|
"Champion of the Parish",
|
|
|
|
"Champion of the Parish",
|
|
|
|
"Elite Vanguard",
|
|
|
|
"Gideon's Lawkeeper",
|
|
|
|
"Hero of Bladehold",
|
|
|
|
"Hero of Bladehold",
|
|
|
|
"Hero of Bladehold",
|
|
|
|
"Mirran Crusader",
|
|
|
|
"Mirran Crusader",
|
|
|
|
"Angelic Destiny",
|
|
|
|
"Angelic Destiny",
|
|
|
|
"Honor of the Pure",
|
|
|
|
"Honor of the Pure",
|
2013-04-12 19:32:25 -07:00
|
|
|
"Day of Judgment"
|
|
|
|
};
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2013-04-12 19:32:25 -07:00
|
|
|
public String getColorText() {
|
|
|
|
return colorText;
|
|
|
|
}
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2017-06-16 20:19:03 -07:00
|
|
|
@Override
|
2013-04-12 19:32:25 -07:00
|
|
|
public int getMinRarity() {
|
|
|
|
return 2;
|
|
|
|
}
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2017-02-07 17:19:14 -08:00
|
|
|
@Override
|
2013-04-12 19:32:25 -07:00
|
|
|
public boolean acceptPossibleSpellCard(final MagicCardDefinition card) {
|
|
|
|
return !card.isCreature() || card.hasSubType(MagicSubType.Human);
|
|
|
|
}
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2017-06-16 20:19:03 -07:00
|
|
|
@Override
|
2013-04-12 19:32:25 -07:00
|
|
|
public void addRequiredSpells(final MagicCondensedDeck deck) {
|
|
|
|
addRequiredCards(deck, cards);
|
|
|
|
}
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2017-06-16 20:19:03 -07:00
|
|
|
@Override
|
2014-03-13 03:24:17 -07:00
|
|
|
public void setColors(final MagicDeckProfile profile) {
|
2013-04-12 19:32:25 -07:00
|
|
|
profile.setColors(getColorText());
|
|
|
|
}
|
|
|
|
}
|