Deny the Supercharge on bosses, except when on easy difficulty.

A supercharge at this point can suddenly make bosses much easier
(especially the case with the Star Killer). This kind of takes away
the tension, so it's undesired. (It's fine for Easy difficulty,
because it's possible to take in a Supercharge from an earlier level
anyway.)
This commit is contained in:
onpon4 2015-02-28 09:22:15 -05:00
parent edda015169
commit cc68479156
1 changed files with 5 additions and 2 deletions

View File

@ -83,10 +83,13 @@ void addCollectable(float x, float y, int type, int value, int life)
}
}
// Deny the Super Charge in Nightmare difficulty.
// Deny the Super Charge in Nightmare difficulty, and on bosses.
if (type == P_SUPER)
{
if (currentGame.difficulty >= DIFFICULTY_NIGHTMARE)
if ((currentGame.difficulty >= DIFFICULTY_NIGHTMARE) ||
((currentGame.difficulty > DIFFICULTY_EASY) &&
((currentGame.area == 5) || (currentGame.area == 11) ||
(currentGame.area == 18) || (currentGame.area == 25))))
{
type = P_PLASMA_DAMAGE;
}