fix(ai): comprehensive AI improvements for active production#1050
Merged
Conversation
Multiple fixes to make AI more active and aggressive: 1. Build order no longer skips steps when waiting for requirements - Added pre-checks for building requirements and production buildings - AI now waits properly instead of counting as failure and skipping 2. Macro rules now run alongside build order (not instead of) - AI keeps producing units/workers while waiting for build order steps - Prevents idle accumulation of resources 3. Lowered macro rule thresholds for earlier activation: - infantry_bay_first: workers 10 -> 6 - extractor_first: workers 10 -> 8 - workers_basic: faster cooldown, higher saturation cap - train_army_aggressive: lower mineral threshold, faster cooldown 4. Added catchall rule to spend excess minerals - Triggers at 200+ minerals to prevent floating resources - Trains mixed infantry at high rate These changes ensure AI stays active throughout the game instead of getting stuck waiting for requirements or floating resources.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multiple fixes to make AI more active and aggressive:
Build order no longer skips steps when waiting for requirements
Macro rules now run alongside build order (not instead of)
Lowered macro rule thresholds for earlier activation:
Added catchall rule to spend excess minerals
These changes ensure AI stays active throughout the game instead of getting stuck waiting for requirements or floating resources.