fix credits

This commit is contained in:
Anthony Calosa
2017-03-09 02:01:08 +08:00
parent 57f55e4270
commit 01d46615a7
4 changed files with 16 additions and 4 deletions

View File

@@ -1711,6 +1711,7 @@ void GameStateDeckViewer::ButtonPressed(int controllerId, int controlId)
int rnd = (rand() % 25);
int price = pricelist->getSellPrice(card);
playerdata->credits += price;
GameApp::mycredits = playerdata->credits;
price = price - (rnd * price) / 100;
pricelist->setPrice(card->getMTGId(), price);
playerdata->collection->remove(card->getMTGId());