Unvanquished
Unvanquished copied to clipboard
implement a `defenseScore` condition
Currently, to make bots change their mind about the fleeing, only the distance to unique (RC/OM) is checked.
I think a defenseScore
would be more adapted to the task, for several reasons:
- it would scale with level / mindset (more coward bots would have lower score)
- it could be impacted with the number of friends (players and buildings) around (this had surprisingly good results with rushScore)
Parameters to consider:
- unfinished nearby buildings
- skill/mindset
- last known enemy stage (see #2147): if enemy have tyrants and luci, and bot is naked, do not wander outside base
- if in base and no friend is nearby, defend (no base can defend itself completely)