Jeck - Resolve issue 183. Momir decks are now automatically generated.
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
Swamp *12
|
|
||||||
Island *12
|
|
||||||
Plains *12
|
|
||||||
Mountain *12
|
|
||||||
Forest *12
|
|
||||||
@@ -143,7 +143,13 @@ void GameStateDuel::loadPlayerRandom(int playerId, int isAI, int mode){
|
|||||||
void GameStateDuel::loadPlayerMomir(int playerId, int isAI){
|
void GameStateDuel::loadPlayerMomir(int playerId, int isAI){
|
||||||
string deckFileSmall = "momir";
|
string deckFileSmall = "momir";
|
||||||
char empty[] = "";
|
char empty[] = "";
|
||||||
MTGDeck * tempDeck = NEW MTGDeck(options.profileFile("momir.txt","",true).c_str(), mParent->collection);
|
MTGDeck * tempDeck = NEW MTGDeck(mParent->collection); //Autogenerate a momir deck. Leave the "momir.txt" bits below for stats.
|
||||||
|
tempDeck->addRandomCards(12, 0,0,Constants::RARITY_L,"Forest");
|
||||||
|
tempDeck->addRandomCards(12, 0,0,Constants::RARITY_L,"Plains");
|
||||||
|
tempDeck->addRandomCards(12, 0,0,Constants::RARITY_L,"Swamp");
|
||||||
|
tempDeck->addRandomCards(12, 0,0,Constants::RARITY_L,"Mountain");
|
||||||
|
tempDeck->addRandomCards(12, 0,0,Constants::RARITY_L,"Island");
|
||||||
|
|
||||||
deck[playerId] = NEW MTGPlayerCards(mParent->collection, tempDeck);
|
deck[playerId] = NEW MTGPlayerCards(mParent->collection, tempDeck);
|
||||||
if (!isAI) // Human Player
|
if (!isAI) // Human Player
|
||||||
mPlayers[playerId] = NEW HumanPlayer(deck[playerId], options.profileFile("momir.txt","",true).c_str(), deckFileSmall);
|
mPlayers[playerId] = NEW HumanPlayer(deck[playerId], options.profileFile("momir.txt","",true).c_str(), deckFileSmall);
|
||||||
|
|||||||
Reference in New Issue
Block a user