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

[Bugfix]: Not being able to equip two-handed items in a certain case (#5076) #7064

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tully-B
Copy link
Contributor

@Tully-B Tully-B commented Apr 10, 2024

Fixes #5076.

It seems that if there's an item only in the right hand, the function will also attempt to put something from the left hand into the inventory as well and if there's no space for it, the said issue will occur. I believe it actually tries to place the right hand item twice and if there's no place for two shields, the check will fail. This is not case if the shield is in your left hand, as it's handled separately I think.

This commit makes it so that no extra check performed when the left hand is empty in this case.

…rgical#5076)

Fix a bug that caused two-handed items not to able to be equipped
if there was an item in the right hand, but not in the left one
and also there wasn't enough space to place the right item TWO times.
This was unintended, obviously, the right item should only be checked for once.
@Tully-B Tully-B changed the title Fix not being able to equip two-handed items in a certain case (#5076) [Bugfix]: Not being able to equip two-handed items in a certain case (#5076) Apr 10, 2024
@qndel
Copy link
Member

qndel commented Apr 11, 2024

DO NOT INCLUDE ISSUE LINKS IN COMMIT MESSAGES

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.

Shift+Left Click Fail To Equip Two Handed Weapons If The Main Hand Is Empty
2 participants