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

Implement two broken governor options #2083

Merged
merged 2 commits into from
Dec 25, 2023
Merged

Conversation

lmoureaux
Copy link
Contributor

This PR fixes the governor option to "optimize" food for growth, trying to find as much food as possible without having excess food when growing. The implementation of this feature isn't optimal but I found it easier to fix the current code than to implement something better.

I also implemented the governor option to disallow using specialists. The field for this was implemented in 2003 and maybe it was working back then, but I don't remember it working in any of the versions I played.

Closes #2058.

There were two bugs:
* Only the city center was considered as a potential food source
* Food surplus above the computed optimized minimum was still encouraged

See longturn#2058.
Now that we have a UI to set allow_specialists, implement it. Do it by not
including specialists in the list of possible citizen assignments.

See longturn#2058.
@lmoureaux lmoureaux requested a review from jwrober December 24, 2023 04:21
Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lmoureaux lmoureaux merged commit a4850fb into longturn:master Dec 25, 2023
18 of 19 checks passed
@lmoureaux lmoureaux deleted the bugfix/cm branch December 25, 2023 02:12
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.

Newly exposed governor settings not doing anything
2 participants