DouglasOrr/Kadigan

Enemy AI 2 - Difficulty levels

Closed this issue · 1 comments

Either/and:

  • Agent takes better/worse decisions
  • Enemy receives resource boost/penalty

TODO:

  • Wire up resource bonus/penalty
  • Defend when being invaded
  • "Rebase" when stuck
  • Difficulty modifies combat behaviour

Rebase when stuck idea:
When retreating, count down a 'patience' timer (maybe 30s). When the patience timer elapses, enter flee (causing move to the home moon, skipping normal behaviour) until the leader is within orbit.

Defend when invaded idea:
When there are any enemies in a radius of home & the leader is not, move to the home moon.

This requires a new hierarchy mode (precedence between plan and action), which can be normal or flee.