Change the method for determining Sid's good targets outside Classic difficulty.

The original method just looked for non-firing targets, which caused
Sid to piss around a bit with the non-target transports.  This new
method just targets the specific classes Sid is always going after,
cargo ships and bosses.
This commit is contained in:
Julie Marchant 2019-06-22 08:44:54 -04:00
parent 75327aa3f8
commit 122624f89e
1 changed files with 13 additions and 2 deletions

View File

@ -1674,8 +1674,19 @@ void alien_searchForTarget(Object *alien)
if (targetEnemy->flags & FL_DISABLED) if (targetEnemy->flags & FL_DISABLED)
return; return;
if (!(targetEnemy->flags & FL_NOFIRE)) if (game.difficulty == DIFFICULTY_ORIGINAL)
badTarget = 1; {
if (!(targetEnemy->flags & FL_NOFIRE))
badTarget = 1;
}
else
{
if ((targetEnemy->classDef != CD_CARGOSHIP) &&
(targetEnemy->classDef != CD_BOSS))
{
badTarget = 1;
}
}
} }
// Tell Phoebe and Ursula not to attack ships that cannot fire or are disabled (unless we're on the last mission) // Tell Phoebe and Ursula not to attack ships that cannot fire or are disabled (unless we're on the last mission)