Fixed a small discrepancy with the Venus mission in Classic difficulty

Since the original actually constantly had you drain Kline's health
to zero and then re-adjusted it, there were effectively stop points
limiting the amount of damage you could do to the amount designated
for the current stage. This has been simulated by setting the shield
to the proper amount of shield for the respective stage if the
difficulty is DIFFICULTY_ORIGINAL.
This commit is contained in:
Layla Marchant 2020-07-27 00:37:04 -04:00
parent 70f5112100
commit 6e8d32fd64
1 changed files with 12 additions and 0 deletions

View File

@ -2229,13 +2229,25 @@ void alien_hurt(Object *alien, Object *attacker, int damage, int ion)
if (alien->shield + damage > stage1_shield
&& alien->shield <= stage1_shield)
{
alien_setKlineAttackMethod(alien);
if (game.difficulty == DIFFICULTY_ORIGINAL)
alien->shield = stage1_shield;
}
else if (alien->shield + damage > stage2_shield
&& alien->shield <= stage2_shield)
{
alien_setKlineAttackMethod(alien);
if (game.difficulty == DIFFICULTY_ORIGINAL)
alien->shield = stage2_shield;
}
else if (alien->shield + damage > stage3_shield
&& alien->shield <= stage3_shield)
{
alien_setKlineAttackMethod(alien);
if (game.difficulty == DIFFICULTY_ORIGINAL)
alien->shield = stage3_shield;
}
}
else
{