From cbfd6ff1534e8e69627b01d7ba35f9b06f2ec5c3 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Fri, 6 Mar 2015 11:48:45 -0500 Subject: [PATCH] Make permanent upgrades cost more when you don't have the temporary ones. The way it was previously, it was tactically beneficial to ignore temporary upgrades, if you were going to do a permanent upgrade to that level anyway. This is silly. Now, you don't lose anything by making the temporary upgrade first. You just get lesser access to the upgrade earlier on. --- src/shop.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shop.cpp b/src/shop.cpp index 1d10950..39cb728 100644 --- a/src/shop.cpp +++ b/src/shop.cpp @@ -77,6 +77,13 @@ static void adjustShopPrices() shopItems[6].price = (2000 * currentGame.minPlasmaDamage); shopItems[7].price = (2000 * currentGame.minPlasmaRate); + if (currentGame.maxPlasmaOutput <= currentGame.minPlasmaOutput) + shopItems[5].price += shopItems[0].price; + if (currentGame.maxPlasmaDamage <= currentGame.minPlasmaDamage) + shopItems[6].price += shopItems[1].price; + if (currentGame.maxPlasmaRate <= currentGame.minPlasmaRate) + shopItems[7].price += shopItems[2].price; + shopItems[8].price = (5 * currentGame.maxPlasmaAmmo); shopItems[9].price = (25 * currentGame.maxRocketAmmo);