Jeck - Completing a collection using the cheat profile now also unlocks all sets in trophy room.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user