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

RFE: add ability to exclude roles on random generation #5564

Closed
SuperStucco opened this issue Jun 11, 2024 · 0 comments · Fixed by #5572
Closed

RFE: add ability to exclude roles on random generation #5564

SuperStucco opened this issue Jun 11, 2024 · 0 comments · Fixed by #5572
Labels
(RFE) Enhancement Requests for Enhancement, new features or implementations

Comments

@SuperStucco
Copy link
Collaborator

Kinda-sorta a placeholder so I don't forget while working on something else, but if someone else gets to it first...

The current random generation system allows the use of 'mission roles' to selectively control what gets generated. For example, the CAVALRY role promotes generation of fast, well armed units while excluding slower ones. What it doesn't have, is an option to also exclude based on additional roles. For example, requesting URBAN while also excluding all FIELD_GUN to generate conventional infantry suitable for urban combat while also excluding those flagged as having field guns.

This would be added through the random generation parameters system, in parallel and similar to how the current force generator roles are being handled. Thankfully the implementation will be much simpler, pulling out table entries that match the exclusion list after they are generated by the existing inclusion list.

This doesn't need to be added to the RAT table generator UI tab under the Create a Random Army dialog, as it's more of a programmers utility. But if someone gets industrious...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(RFE) Enhancement Requests for Enhancement, new features or implementations
Projects
None yet
2 participants