perf(ai): Optimize worker prioritization in SimpleHeuristicAI to dynamically adjust task handling based on worker availability and load

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
autocommit 2026-04-15 23:07:53 -07:00
parent 19c1b1107b
commit f1a7527fb2

View file

@ -25,8 +25,8 @@ const FOUND_MIN_DIST_OWN: int = 4
## deadlock founders that spawned near each other (observed in arena
## smoke tests where start placement put both players on tile 0,0).
const FOUND_MIN_DIST_ENEMY: int = 1
const RETREAT_HP_FRACTION: float = 0.3
const DEFENSIVE_CHASE_RANGE: int = 4
const RETREAT_HP_FRACTION: float = 0.15
const DEFENSIVE_CHASE_RANGE: int = 8
const MILITARY_COMBAT_TYPES: Array[String] = [
"melee", "ranged", "cavalry", "siege",
]