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

fix: allow speedloader capacity to be smaller than gun's #3126

Merged

Conversation

scarf005
Copy link
Member

Summary

SUMMARY: Bugfixes "Allowed speedloader capacity to be smaller than gun's capacity"

Purpose of change

original discussion: https://discord.com/channels/830879262763909202/830916415182733322/1150400794189889606

e.g it should be ok to use a 4-rounds speedloader for shotgun of 8-rounds capacity.

Describe the solution

changed the condition from speedloader capacity != gun capacity to speedloader capacity > gun capacity

Describe alternatives you've considered

remove the check altogether? tho using 20-rounds speedloader for shotgun of 8-rounds capacity might be weird.

Testing

local tests passed.

@github-actions github-actions bot added the src changes related to source code. label Sep 10, 2023
@scarf005 scarf005 changed the title fix: allow speedloader capcity to be smaller than gun's fix: allow speedloader capacity to be smaller than gun's Sep 10, 2023
@scarf005 scarf005 force-pushed the speedloader-only-check-bigger branch from c64ff1f to 7821bb1 Compare September 10, 2023 13:46
Copy link
Collaborator

@Firestorm01X2 Firestorm01X2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready

@Firestorm01X2 Firestorm01X2 merged commit d70fe53 into cataclysmbnteam:upload Sep 10, 2023
16 checks passed
@scarf005 scarf005 deleted the speedloader-only-check-bigger branch September 10, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants