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

Refactor BaseBuilderBotModule #16180

Open
reaperrr opened this Issue Feb 8, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@reaperrr
Copy link
Contributor

reaperrr commented Feb 8, 2019

These are the changes I would make:

  • Add an InitialBuildOrder field that defines a list of buildings to build first (in the order they are listed) before starting to build stuff randomly.
  • Improve the 'priority overrides' (example: running production of a defense or tech building should be paused or cancelled if it would make the base go on low power).
  • Merge BuildingLimits into BuildingFractions by turning it into a BuildLimit sub-property optionally set on each building.
  • Add hard caps: MaxBaseBuildings and MaxDefenses to prevent AI from going overboard on base size. Alternative: Adress this yaml-side by setting BuildLimit on ALL structures.
  • Add an optional ValidLocations sub-property alongside BuildLimit that forces the AI to only build that structure at one of those CPos locations (and only if they're not occupied), allowing us to use the base builder in singleplayer to build/replace buildings only at the desired locations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment