adjust stack display & game credits

the stack will display the latest object always on TOP so we can see
which will resolve first, the last to resolve will always be on
bottom... also increase credit bonus. default is 500 credits and for
momir will be 800 credits.
This commit is contained in:
Anthony Calosa
2017-03-08 13:38:19 +08:00
parent c78db0eb26
commit ff6e4aec9a
5 changed files with 44 additions and 7 deletions
+6 -6
View File
@@ -183,9 +183,9 @@ void Credits::compute(GameObserver* g, GameApp * _app)
if (p2->isAI() && g->didWin(p1))
{
gameLength = time(0) - g->startedAt;
value = 400;
if (app->gameType != GAME_TYPE_CLASSIC)
value = 200;
value = 500;
if (app->gameType == GAME_TYPE_MOMIR)
value = 800;//800 credits for momir
int difficulty = options[Options::DIFFICULTY].number;
if (options[Options::DIFFICULTY_MODE_UNLOCKED].number && difficulty)
{
@@ -360,9 +360,9 @@ void Credits::computeTournament(GameObserver* g, GameApp * _app,bool tournament,
PlayerData * playerdata = NEW PlayerData(MTGCollection());
if (p2->isAI() && mPlayerWin)
{
value = 400;
if (app->gameType != GAME_TYPE_CLASSIC)
value = 200;
value = 500;
if (app->gameType == GAME_TYPE_MOMIR)
value = 800;
int difficulty = options[Options::DIFFICULTY].number;
if (options[Options::DIFFICULTY_MODE_UNLOCKED].number && difficulty)
{