-fixed shop refresh method problem (would not save correctly)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-26 06:08:39 +00:00
parent ada385d358
commit 129334b93f
10 changed files with 41 additions and 22 deletions

View File

@@ -777,7 +777,7 @@ class GameStateDeckViewer: public GameState, public JGuiListener
{
MTGCard * card = cardIndex[2];
if (card){
int rnd = (rand() % 20);
int rnd = (rand() % 25);
playerdata->credits += price;
price = price - (rnd * price)/100;
pricelist->setPrice(card->getMTGId(),price*2);