mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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;
|
||||
|
||||
import mage.cards.repository.CardRepository;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author tre3qwerty
|
||||
|
@ -36,19 +38,7 @@ public class ChoiceLandType extends ChoiceImpl {
|
|||
|
||||
public ChoiceLandType() {
|
||||
super(true);
|
||||
this.choices.add("Forest");
|
||||
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.setChoices(CardRepository.instance.getLandTypes());
|
||||
this.message = "Choose a land type";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue