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

Fab workarounds #603

Merged
merged 3 commits into from Apr 15, 2023
Merged

Fab workarounds #603

merged 3 commits into from Apr 15, 2023

Conversation

neroden
Copy link

@neroden neroden commented Apr 10, 2023

This re-enables "factory_enforce_demand", which was a nonfunctional option which was not checked in the current codebase. Default remains 1. If set to 0, staff shortages do not happen. This allows for turning off staff shortages without directly messing with the minimum staffing percentages, which I find useful both for playing (when there are staff shortage issues) and for debugging.

If factory_enforce_demand = 1 (the default), then this also fixes a bug where a consumer industry with a single input could sell stock even with no staff because the previous code bypassed the staff shortage check; the staff shortage check is now first.

I will try to track down the root cause of the staff shortage bugs later but this is, at any rate, an improvement.

If factory_enforce_demand is false, don't create staff shortages. (This allows workarounds for problems with the commuter system.)
If factory_enforce_demand is true, cause a shop with no staff to be "out of stock" even if it has only one input.  (This was a bug.)
@jamespetts jamespetts merged commit 81b919c into jamespetts:master Apr 15, 2023
@neroden neroden deleted the fab-workarounds branch April 24, 2023 13:01
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

2 participants