Don't auto-sell rocket capacity when buying laser/charger in Classic.

Classic difficulty penalizes you for selling items, so it's best not
to automatically sell anything that doesn't need to be. It could be,
for example, that you want to switch to a laser and then back to
rockets, in which case the auto-selling could make this much more
costly or cripple your missiles when you come back to them.
This commit is contained in:
onpon4 2016-11-26 13:12:15 -05:00
parent dd4e0b3855
commit eecdb15445
1 changed files with 10 additions and 4 deletions

View File

@ -721,8 +721,11 @@ static void buy(int i)
shop_sellSecondaryWeapon();
player.weaponType[1] = W_LASER;
if (game.difficulty != DIFFICULTY_ORIGINAL)
{
while (game.maxRocketAmmo > 5)
sell(SHOP_ROCKET_MAX_AMMO);
}
while (player.ammo[1] > 0)
sell(SHOP_ROCKET_AMMO);
@ -754,8 +757,11 @@ static void buy(int i)
shop_sellSecondaryWeapon();
player.weaponType[1] = W_CHARGER;
if (game.difficulty != DIFFICULTY_ORIGINAL)
{
while (game.maxRocketAmmo > 5)
sell(SHOP_ROCKET_MAX_AMMO);
}
while (player.ammo[1] > 0)
sell(SHOP_ROCKET_AMMO);