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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user