Erwan
- reduced price of boosters - Sets need to be unlocked in order to be accessed from the shop - Added a "refresh" option in the shop
This commit is contained in:
@@ -26,6 +26,7 @@ private:
|
||||
int isMomirUnlocked();
|
||||
int isEvilTwinUnlocked();
|
||||
int isRandomDeckUnlocked();
|
||||
int unlockRandomSet();
|
||||
public:
|
||||
int value;
|
||||
Player * p1, *p2;
|
||||
@@ -34,6 +35,7 @@ public:
|
||||
int unlocked;
|
||||
JQuad * unlockedQuad;
|
||||
JTexture * unlockedTex;
|
||||
string unlockedString;
|
||||
vector<CreditBonus *> bonus;
|
||||
Credits();
|
||||
~Credits();
|
||||
|
||||
@@ -29,7 +29,7 @@ class GameStateShop: public GameState, public JGuiListener
|
||||
char starterBuffer[128], boosterBuffer[128];
|
||||
char setNames[SHOP_BOOSTERS][128];
|
||||
int setIds[SHOP_BOOSTERS];
|
||||
|
||||
void load();
|
||||
public:
|
||||
GameStateShop(GameApp* parent);
|
||||
virtual ~GameStateShop();
|
||||
|
||||
@@ -23,7 +23,7 @@ class GameApp;
|
||||
class MTGCard;
|
||||
|
||||
|
||||
#define MAX_SETS 50
|
||||
#define MAX_SETS 100
|
||||
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ class MTGDeck{
|
||||
int totalCards();
|
||||
MTGDeck(TexturesCache * cache, MTGAllCards * _allcards);
|
||||
MTGDeck(const char * config_file, TexturesCache * cache, MTGAllCards * _allcards, int meta_only = 0);
|
||||
int addRandomCards(int howmany, int setId = -1, int rarity = -1, const char * subtype = NULL, int * colors = NULL, int nbcolors = 0);
|
||||
int addRandomCards(int howmany, int * setIds = NULL, int nbSets = 0, int rarity = -1, const char * subtype = NULL, int * colors = NULL, int nbcolors = 0);
|
||||
int add(int cardid);
|
||||
int add(MTGDeck * deck); // adds the contents of "deck" into myself
|
||||
int remove(int cardid);
|
||||
|
||||
Reference in New Issue
Block a user