Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AI recruitment: fix units on recall list interfering with recruiting
Units on the recall list are treated as recruits by the AI. The code previously did not check whether a unit it worth being recalled until after it makes the decision which unit type to recruit/recall. If it then can only recall, but not recruit units of that type and all of them are deemed not worth it, the entire recruitment CA is disabled (via black listing), meaning recruiting is abandoned also. This commit fixes this by checking the unit value vs. the recall cost before putting recalls on the recruitment list. (cherry picked from commit 1597a2c)
- Loading branch information
Showing
2 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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