Remove the Super Charge effect after leaving battle, unless on easy mode.
This commit is contained in:
parent
d44f3f9fcc
commit
c9fb4e793c
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue