-added "this" as valid target (still needs some work)  see cathodion
- Added mythic rares in boosters
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-20 03:35:26 +00:00
parent 8d62b9288c
commit a376e8110b
8 changed files with 66 additions and 19 deletions

View File

@@ -253,8 +253,10 @@ void ShopItems::ButtonPressed(int controllerId, int controlId){
display = NEW CardDisplay(12,NULL, SCREEN_WIDTH - 200, SCREEN_HEIGHT/2,this,NULL,5);
MTGDeck * tempDeck = NEW MTGDeck(NULL,playerdata->collection->database);
tempDeck->addRandomCards(1, setIds[showPriceDialog],Constants::RARITY_R);
int rare_or_mythic = Constants::RARITY_R;
int rnd = rand() % 8;
if (rnd == 0) rare_or_mythic = Constants::RARITY_M;
tempDeck->addRandomCards(1, setIds[showPriceDialog],rare_or_mythic);
tempDeck->addRandomCards(3, setIds[showPriceDialog],Constants::RARITY_U);
tempDeck->addRandomCards(11, setIds[showPriceDialog],Constants::RARITY_C);
playerdata->collection->add(tempDeck);