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

pick_weight over pickweight #6760

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

Doubleumc
Copy link
Contributor

@Doubleumc Doubleumc commented Jul 18, 2024

About the pull request

Removes pickweight and switches over to pick_weight. The only difference is that pickweight treated weight 0 as weight 1, and pick_weight does not. Only utility_closets and flow had 0-weight entries, and I corrected those.

Updates pick_weight to TG's version, which fixes a statistical error:
tgstation/tgstation#71271
tgstation/tgstation#71273

Explain why it's good for the game

Less redundant code. More statistical accuracy.

Testing Photographs and Procedure

Boots.

Changelog

🆑
code: Fixed and refactored probability weighting for pick_weight
/:cl:

@Doubleumc Doubleumc requested a review from fira as a code owner July 18, 2024 23:19
@github-actions github-actions bot added the Missing Changelog Maintainers always document their changes. label Jul 18, 2024
lack of "weight" should still count as weight 1
@github-actions github-actions bot added Code Improvement Make the code longer and removed Missing Changelog Maintainers always document their changes. labels Jul 19, 2024
@Drulikar Drulikar added this pull request to the merge queue Jul 19, 2024
Merged via the queue into cmss13-devs:master with commit c840bb9 Jul 19, 2024
29 checks passed
cm13-github added a commit that referenced this pull request Jul 19, 2024
@Doubleumc Doubleumc deleted the pick_weight-over-pickweight branch July 19, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Make the code longer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants