Added EF_NO_THREAT to help with Eliminate All.
This commit is contained in:
parent
62d35ae7e8
commit
55462db981
|
@ -604,7 +604,7 @@ void countNumEnemies(void)
|
|||
|
||||
for (e = battle.entityHead.next ; e != NULL ; e = e->next)
|
||||
{
|
||||
if (e->side != SIDE_ALLIES && e->type == ET_FIGHTER)
|
||||
if (e->side != SIDE_ALLIES && e->type == ET_FIGHTER && (!(e->flags & EF_NO_THREAT)))
|
||||
{
|
||||
battle.numInitialEnemies++;
|
||||
}
|
||||
|
|
|
@ -106,6 +106,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#define EF_NON_SOLID (2 << 20)
|
||||
#define EF_NO_HEALTH_BAR (2 << 21)
|
||||
#define EF_FRIENDLY_HEALTH_BAR (2 << 22)
|
||||
#define EF_NO_THREAT (2 << 23)
|
||||
|
||||
#define AIF_NONE 0
|
||||
#define AIF_FOLLOWS_PLAYER (2 << 0)
|
||||
|
|
|
@ -67,6 +67,7 @@ void initLookups(void)
|
|||
addLookup("EF_NO_MT_BOX", EF_NO_MT_BOX);
|
||||
addLookup("EF_FRIENDLY_HEALTH_BAR", EF_FRIENDLY_HEALTH_BAR);
|
||||
addLookup("EF_AI_IGNORE", EF_AI_IGNORE);
|
||||
addLookup("EF_NO_THREAT", EF_NO_THREAT);
|
||||
|
||||
addLookup("AIF_NONE", AIF_NONE);
|
||||
addLookup("AIF_MOVES_TO_PLAYER", AIF_MOVES_TO_PLAYER);
|
||||
|
|
Loading…
Reference in New Issue