Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fight_or_flight_aliens.bt, use it #2965

Merged
merged 2 commits into from May 8, 2024

Conversation

sweet235
Copy link
Contributor

@sweet235 sweet235 commented Apr 2, 2024

This describes how alien bots decide when to fight and when to retreat and heal.

Reduce code duplication by moving this part of the alien bot behavior in its own file. Tweak it a little, please refer to the comments in the file for a detailed explanation. Summary:

  • Abort healing when the base is under attack
  • Do not make the decision to heal depend on the distance to the alien base

Edit:
Don't let the size of the file scare you, it is mostly comments.

@illwieckz illwieckz merged commit 1e0efc0 into Unvanquished:master May 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants