From cf034ffa4a63d9cd10135b0983c28784ce3243f7 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Sun, 27 Nov 2016 23:24:03 -0500 Subject: [PATCH] Don't combine temporary and permanent upgrade price in Classic difficulty. --- src/shop.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/shop.cpp b/src/shop.cpp index fc70671..d9819ed 100644 --- a/src/shop.cpp +++ b/src/shop.cpp @@ -104,14 +104,14 @@ static void adjustShopPrices() shopItems[SHOP_PLASMA_MIN_OUTPUT].price = 1500 * (game.minPlasmaOutput + 1); shopItems[SHOP_PLASMA_MIN_DAMAGE].price = 1500 * (game.minPlasmaDamage + 1); shopItems[SHOP_PLASMA_MIN_RATE].price = 1500 * (game.minPlasmaRate + 1); - } - if (game.maxPlasmaOutput <= game.minPlasmaOutput) - shopItems[SHOP_PLASMA_MIN_OUTPUT].price += shopItems[SHOP_PLASMA_MAX_OUTPUT].price; - if (game.maxPlasmaDamage <= game.minPlasmaDamage) - shopItems[SHOP_PLASMA_MIN_DAMAGE].price += shopItems[SHOP_PLASMA_MAX_DAMAGE].price; - if (game.maxPlasmaRate <= game.minPlasmaRate) - shopItems[SHOP_PLASMA_MIN_RATE].price += shopItems[SHOP_PLASMA_MAX_RATE].price; + if (game.maxPlasmaOutput <= game.minPlasmaOutput) + shopItems[SHOP_PLASMA_MIN_OUTPUT].price += shopItems[SHOP_PLASMA_MAX_OUTPUT].price; + if (game.maxPlasmaDamage <= game.minPlasmaDamage) + shopItems[SHOP_PLASMA_MIN_DAMAGE].price += shopItems[SHOP_PLASMA_MAX_DAMAGE].price; + if (game.maxPlasmaRate <= game.minPlasmaRate) + shopItems[SHOP_PLASMA_MIN_RATE].price += shopItems[SHOP_PLASMA_MAX_RATE].price; + } shopItems[SHOP_PLASMA_MAX_AMMO].price = (10 * (game.maxPlasmaAmmo - 75)); shopItems[SHOP_ROCKET_MAX_AMMO].price = (25 * game.maxRocketAmmo);