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

Antag selection weighting fixups #3481

Merged

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Sep 20, 2024

About The Pull Request

I was looking through runtimes on the live server, and noticed stuff with midround antag selection, where pick_weighted would complain because there was like a "": null in the middle of the input. Looking at the code, I saw several problems, and borbop brought up this may also be causing client hard deletes. So I rewrote some stuff to be more resilient - like just using ckeys instead of /client objects as keys in return_antag_rep_weight and improving the code of some of the antag selection loops.

Testing Evidence

2024-09-19 (1726792008) ~ dreamseeker
2024-09-19 (1726792304) ~ dreamseeker

Changelog

🆑
fix: Fixed some logic relating to antag selection (roundstart, midround, and ghost roles), hopefully reducing hard deletes and potential issues.
/:cl:

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.

1 participant