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
11
src/alien.c
11
src/alien.c
|
@ -1674,9 +1674,20 @@ void alien_searchForTarget(Object *alien)
|
||||||
if (targetEnemy->flags & FL_DISABLED)
|
if (targetEnemy->flags & FL_DISABLED)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (game.difficulty == DIFFICULTY_ORIGINAL)
|
||||||
|
{
|
||||||
if (!(targetEnemy->flags & FL_NOFIRE))
|
if (!(targetEnemy->flags & FL_NOFIRE))
|
||||||
badTarget = 1;
|
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)
|
||||||
if (game.area != MISN_EARTH)
|
if (game.area != MISN_EARTH)
|
||||||
|
|
Loading…
Reference in New Issue