From 6e98804e0ff2cf97785f450b13cb6ef17e805635 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Sun, 27 Nov 2016 23:46:36 -0500 Subject: [PATCH] Don't allow selling powerup plasma less than 2 in Classic difficulty. --- src/shop.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shop.cpp b/src/shop.cpp index d9819ed..277ae9a 100644 --- a/src/shop.cpp +++ b/src/shop.cpp @@ -811,7 +811,7 @@ static void sell(int i) switch (i) { case SHOP_PLASMA_MAX_OUTPUT: - if (game.maxPlasmaOutput <= 1) + if (game.maxPlasmaOutput <= ((game.difficulty != DIFFICULTY_ORIGINAL) ? 1 : 2)) { shopSelectedItem = -5; return; @@ -828,7 +828,7 @@ static void sell(int i) break; case SHOP_PLASMA_MAX_DAMAGE: - if (game.maxPlasmaDamage <= 1) + if (game.maxPlasmaDamage <= ((game.difficulty != DIFFICULTY_ORIGINAL) ? 1 : 2)) { shopSelectedItem = -5; return; @@ -845,7 +845,7 @@ static void sell(int i) break; case SHOP_PLASMA_MAX_RATE: - if (game.maxPlasmaRate <= 1) + if (game.maxPlasmaRate <= ((game.difficulty != DIFFICULTY_ORIGINAL) ? 1 : 2)) { shopSelectedItem = -5; return;