-
Notifications
You must be signed in to change notification settings - Fork 493
Add prefer nicknamed to spectate #5386
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
Add prefer nicknamed to spectate #5386
Conversation
myk002
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs:
- changelog entry
- actually filling the bucket with data
plugins/spectate.cpp
Outdated
| if (config.prefer_nicknamed) { | ||
| add_bucket(nicknamed_units, units, intervals, weights, NICKNAMED_CITIZEN_PREFERRED_WEIGHT); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This effectively removes nicknamed dwarves from the selection pool if prefer_nicknamed is false.
These code reviews take up a lot of my time. Please be sure to test your code carefully.
in my testing turning off the prefer nicknamed used the jobs to categorize them . (i went from 16 nicknamed to 2 job units and 14 other units) so I'm pretty sure this works as i meant it to now
myk002
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good. please add documentation to the .rst file
Closes: #5305