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:
parent
75327aa3f8
commit
122624f89e
15
src/alien.c
15
src/alien.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue