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 clothing removing encumbrance #11742

Merged

Conversation

Projects
None yet
3 participants
@Coolthulhu
Copy link
Contributor

commented Mar 22, 2015

Closes #11722 and #11739

The bug was a result of fitting non-zero encumbrance items decreasing the part encumbrance and then checking if it went below 0 instead of checking if (this_gear's_encumbrance - 1) isn't below 0.

As a result, fitting items with encumbrance between 0 and 10 would counter the encumbrance caused by items before them (item order matters).

@kevingranade kevingranade self-assigned this Mar 22, 2015

@kevingranade kevingranade merged commit 1f07c7b into CleverRaven:master Mar 22, 2015

1 check passed

default
Details
@sparr

This comment has been minimized.

Copy link
Member

commented Mar 23, 2015

I think you have to say "Closes #xxxxx" for both of them for the automated issue closer to work.

"Closes #11722 and Closes #11739"

@Coolthulhu Coolthulhu deleted the cataclysmbnteam:clothing-encumbrance-order branch Apr 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.