From 2508a64634a525f1711d96f1f8c085c5f9e6fdda Mon Sep 17 00:00:00 2001 From: "wagic.jeck" Date: Mon, 8 Feb 2010 23:53:04 +0000 Subject: [PATCH] Jeck - Completing a collection using the cheat profile now also unlocks all sets in trophy room. --- projects/mtg/src/GameStateDeckViewer.cpp | 6 ++++++ projects/mtg/src/GameStateShop.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/GameStateDeckViewer.cpp b/projects/mtg/src/GameStateDeckViewer.cpp index 9eeff865b..d8bfd1a9e 100644 --- a/projects/mtg/src/GameStateDeckViewer.cpp +++ b/projects/mtg/src/GameStateDeckViewer.cpp @@ -1512,6 +1512,12 @@ void GameStateDeckViewer::ButtonPressed(int controllerId, int controlId) case -1: // (PSY) Cheatmode: Complete the collection playerdata->collection->complete(); // Add the cards playerdata->collection->save(); // Save the new collection + for(int i=0;i(&options[Options::optionSet(i)]); + if(goa) + goa->giveAward(); + } + options.save(); mStage = STAGE_WELCOME; // Reset the deck viewer, so that the new collection gets loaded break; case 0: diff --git a/projects/mtg/src/GameStateShop.cpp b/projects/mtg/src/GameStateShop.cpp index 092240be2..7344ea59b 100644 --- a/projects/mtg/src/GameStateShop.cpp +++ b/projects/mtg/src/GameStateShop.cpp @@ -126,7 +126,7 @@ string GameStateShop::descPurchase(int controlId, bool tiny){ if(mBooster[controlId].altSet == mBooster[controlId].mainSet) mBooster[controlId].altSet = NULL; if(mBooster[controlId].altSet) - sprintf(buffer,_("%s & %s Booster (15 Cards)").c_str(),mBooster[controlId].mainSet->id.c_str(),mBooster[controlId].altSet->id.c_str()); + sprintf(buffer,_("%s & %s (15 Cards)").c_str(),mBooster[controlId].mainSet->id.c_str(),mBooster[controlId].altSet->id.c_str()); else sprintf(buffer,_("%s Booster (15 Cards)").c_str(),mBooster[controlId].mainSet->id.c_str()); name = buffer;