Remove the Super Charge effect after leaving battle, unless on easy mode.

This commit is contained in:
onpon4 2015-02-27 22:03:06 -05:00
parent d44f3f9fcc
commit c9fb4e793c
2 changed files with 18 additions and 0 deletions

View File

@ -83,6 +83,15 @@ void addCollectable(float x, float y, int type, int value, int life)
}
}
// Deny the Super Charge in Nightmare difficulty.
if (type == P_SUPER)
{
if (currentGame.difficulty >= DIFFICULTY_NIGHTMARE)
{
type = P_PLASMA_DAMAGE;
}
}
collectables *collectable = new collectables;
collectable->next = NULL;

View File

@ -478,6 +478,15 @@ int galaxyMap()
// do not perform certain keyboard actions
engine.gameSection = SECTION_INTERMISSION;
// Remove the Supercharge, if it is there
if (currentGame.difficulty > DIFFICULTY_EASY)
{
weapon[0].reload[0] = max(weapon[0].reload[0],
rate2reload[currentGame.maxPlasmaRate]);
weapon[0].ammo[0] = min(weapon[0].ammo[0], currentGame.maxPlasmaOutput);
weapon[0].damage = min(weapon[0].damage, currentGame.maxPlasmaDamage);
}
clearScreen(black);
updateScreen();
clearScreen(black);