mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Modified ChoiceLandType to use CardRepository
-ChoiceLandType now generates the land types list using CardRepository.getLandTypes() instead of using a statically typed list.
This commit is contained in:
parent
d4be72e396
commit
4971c7d5fe
1 changed files with 3 additions and 13 deletions
|
@ -28,6 +28,8 @@
|
||||||
|
|
||||||
package mage.choices;
|
package mage.choices;
|
||||||
|
|
||||||
|
import mage.cards.repository.CardRepository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author tre3qwerty
|
* @author tre3qwerty
|
||||||
|
@ -36,19 +38,7 @@ public class ChoiceLandType extends ChoiceImpl {
|
||||||
|
|
||||||
public ChoiceLandType() {
|
public ChoiceLandType() {
|
||||||
super(true);
|
super(true);
|
||||||
this.choices.add("Forest");
|
this.setChoices(CardRepository.instance.getLandTypes());
|
||||||
this.choices.add("Island");
|
|
||||||
this.choices.add("Mountain");
|
|
||||||
this.choices.add("Plains");
|
|
||||||
this.choices.add("Swamp");
|
|
||||||
this.choices.add("Desert");
|
|
||||||
this.choices.add("Gate");
|
|
||||||
this.choices.add("Lair");
|
|
||||||
this.choices.add("Locus");
|
|
||||||
this.choices.add("Urza's");
|
|
||||||
this.choices.add("Mine");
|
|
||||||
this.choices.add("Power-Plant");
|
|
||||||
this.choices.add("Tower");
|
|
||||||
this.message = "Choose a land type";
|
this.message = "Choose a land type";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue