Issue 494: "Valuable Collection" trophy is gone?

The check to give the award was lost in some of Jeck's reorg work (R1825), as ShopItem was deprecated & folded into GameStateShop. While at it, I took the liberty to delete ShopItem.h/cpp since they're not used.
This commit is contained in:
wrenczes@gmail.com
2010-12-04 09:46:31 +00:00
parent 7b8a9c851f
commit 1b876d61af
3 changed files with 7 additions and 693 deletions

View File

@@ -769,6 +769,13 @@ void GameStateShop::ButtonPressed(int controllerId, int controlId)
purchaseBooster(sel);
else
purchaseCard(sel);
//Check if we just scored an award...
if (myCollection && myCollection->totalPrice() > 10000)
{
GameOptionAward * goa = dynamic_cast<GameOptionAward *> (&options[Options::AWARD_COLLECTOR]);
if (goa) goa->giveAward();
}
}
mStage = STAGE_SHOP_SHOP;
return;