From 122624f89ee179509fe3c0afc495d6b49240be5e Mon Sep 17 00:00:00 2001 From: Julie Marchant Date: Sat, 22 Jun 2019 08:44:54 -0400 Subject: [PATCH] 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. --- src/alien.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/alien.c b/src/alien.c index 098c8d6..06f70ca 100644 --- a/src/alien.c +++ b/src/alien.c @@ -1674,8 +1674,19 @@ void alien_searchForTarget(Object *alien) if (targetEnemy->flags & FL_DISABLED) return; - if (!(targetEnemy->flags & FL_NOFIRE)) - badTarget = 1; + if (game.difficulty == DIFFICULTY_ORIGINAL) + { + 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)