mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
Fix AI_STATE_AGGRESSIVE squad generation
This commit is contained in:
parent
00534625b3
commit
1605248a61
@ -21,7 +21,7 @@ local AI_STATE_ONSLAUGHT = constants.AI_STATE_ONSLAUGHT
|
||||
|
||||
function aiPredicates.canAttack(map, tick)
|
||||
local surface = map.surface
|
||||
local goodAI = (((map.state == AI_STATE_AGGRESSIVE) and (map.canAttackTick > tick)) or
|
||||
local goodAI = (((map.state == AI_STATE_AGGRESSIVE) and (map.canAttackTick < tick)) or
|
||||
(map.state == AI_STATE_RAIDING) or
|
||||
(map.state == AI_STATE_ONSLAUGHT))
|
||||
local notPeaceful = not surface.peaceful_mode
|
||||
|
Loading…
x
Reference in New Issue
Block a user