Jeck - Completing a collection using the cheat profile now also unlocks all sets in trophy room.

This commit is contained in:
wagic.jeck
2010-02-08 23:53:04 +00:00
parent e5be940766
commit 2508a64634
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -1512,6 +1512,12 @@ void GameStateDeckViewer::ButtonPressed(int controllerId, int controlId)
case -1: // (PSY) Cheatmode: Complete the collection case -1: // (PSY) Cheatmode: Complete the collection
playerdata->collection->complete(); // Add the cards playerdata->collection->complete(); // Add the cards
playerdata->collection->save(); // Save the new collection playerdata->collection->save(); // Save the new collection
for(int i=0;i<setlist.size();i++){
GameOptionAward * goa = dynamic_cast<GameOptionAward*>(&options[Options::optionSet(i)]);
if(goa)
goa->giveAward();
}
options.save();
mStage = STAGE_WELCOME; // Reset the deck viewer, so that the new collection gets loaded mStage = STAGE_WELCOME; // Reset the deck viewer, so that the new collection gets loaded
break; break;
case 0: case 0:
+1 -1
View File
@@ -126,7 +126,7 @@ string GameStateShop::descPurchase(int controlId, bool tiny){
if(mBooster[controlId].altSet == mBooster[controlId].mainSet) if(mBooster[controlId].altSet == mBooster[controlId].mainSet)
mBooster[controlId].altSet = NULL; mBooster[controlId].altSet = NULL;
if(mBooster[controlId].altSet) 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 else
sprintf(buffer,_("%s Booster (15 Cards)").c_str(),mBooster[controlId].mainSet->id.c_str()); sprintf(buffer,_("%s Booster (15 Cards)").c_str(),mBooster[controlId].mainSet->id.c_str());
name = buffer; name = buffer;