A little cleanup.
This commit is contained in:
parent
0f6807d4ad
commit
8de37af9cd
36
src/shop.cpp
36
src/shop.cpp
|
@ -74,35 +74,23 @@ static void adjustShopPrices()
|
||||||
{
|
{
|
||||||
if (game.difficulty == DIFFICULTY_ORIGINAL)
|
if (game.difficulty == DIFFICULTY_ORIGINAL)
|
||||||
{
|
{
|
||||||
shopItems[SHOP_PLASMA_MAX_OUTPUT].price = (500 *
|
shopItems[SHOP_PLASMA_MAX_OUTPUT].price = 500 * game.maxPlasmaOutput;
|
||||||
game.maxPlasmaOutput);
|
shopItems[SHOP_PLASMA_MAX_DAMAGE].price = 500 * game.maxPlasmaDamage;
|
||||||
shopItems[SHOP_PLASMA_MAX_DAMAGE].price = (500 *
|
shopItems[SHOP_PLASMA_MAX_RATE].price = 500 * (game.maxPlasmaRate * 2 - 1);
|
||||||
game.maxPlasmaDamage);
|
|
||||||
shopItems[SHOP_PLASMA_MAX_RATE].price = (500 *
|
|
||||||
(game.maxPlasmaRate * 2 - 1));
|
|
||||||
|
|
||||||
shopItems[SHOP_PLASMA_MIN_OUTPUT].price = (2000 *
|
shopItems[SHOP_PLASMA_MIN_OUTPUT].price = 2000 * game.minPlasmaOutput;
|
||||||
game.minPlasmaOutput);
|
shopItems[SHOP_PLASMA_MIN_DAMAGE].price = 2000 * game.minPlasmaDamage;
|
||||||
shopItems[SHOP_PLASMA_MIN_DAMAGE].price = (2000 *
|
shopItems[SHOP_PLASMA_MIN_RATE].price = 2000 * (game.minPlasmaRate * 2 - 1);
|
||||||
game.minPlasmaDamage);
|
|
||||||
shopItems[SHOP_PLASMA_MIN_RATE].price = (2000 *
|
|
||||||
(game.minPlasmaRate * 2 - 1));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
shopItems[SHOP_PLASMA_MAX_OUTPUT].price = (1000 *
|
shopItems[SHOP_PLASMA_MAX_OUTPUT].price = 1000 * (game.maxPlasmaOutput + 1);
|
||||||
(game.maxPlasmaOutput + 1));
|
shopItems[SHOP_PLASMA_MAX_DAMAGE].price = 1000 * (game.maxPlasmaDamage + 1);
|
||||||
shopItems[SHOP_PLASMA_MAX_DAMAGE].price = (1000 *
|
shopItems[SHOP_PLASMA_MAX_RATE].price = 1000 * (game.maxPlasmaRate + 1);
|
||||||
(game.maxPlasmaDamage + 1));
|
|
||||||
shopItems[SHOP_PLASMA_MAX_RATE].price = (1000 *
|
|
||||||
(game.maxPlasmaRate + 1));
|
|
||||||
|
|
||||||
shopItems[SHOP_PLASMA_MIN_OUTPUT].price = (1500 *
|
shopItems[SHOP_PLASMA_MIN_OUTPUT].price = 1500 * (game.minPlasmaOutput + 1);
|
||||||
(game.minPlasmaOutput + 1));
|
shopItems[SHOP_PLASMA_MIN_DAMAGE].price = 1500 * (game.minPlasmaDamage + 1);
|
||||||
shopItems[SHOP_PLASMA_MIN_DAMAGE].price = (1500 *
|
shopItems[SHOP_PLASMA_MIN_RATE].price = 1500 * (game.minPlasmaRate + 1);
|
||||||
(game.minPlasmaDamage + 1));
|
|
||||||
shopItems[SHOP_PLASMA_MIN_RATE].price = (1500 *
|
|
||||||
(game.minPlasmaRate + 1));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (game.maxPlasmaOutput <= game.minPlasmaOutput)
|
if (game.maxPlasmaOutput <= game.minPlasmaOutput)
|
||||||
|
|
Loading…
Reference in New Issue