Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Bugfixes "Fix item duplication on pickup"
Purpose of change
Fixes #34341
Fixes #34302
Describe the solution
The pickup code was wielding the wrong item.
So when it got switched around, and then charges were added erroneously also, it made two full stacks.
Just made the wield() func pick up the right item, and removed the amendment to its charges, as the charges are correctly set beforehand.
Describe alternatives you've considered
N/A
Testing
spawned 360 chunks of meat, picked up 80.
280 wre left on ground, I had 80 wielded.
Tried picking up entire stack by typing in 360
item on ground correctly deleted, now wielding 360.
Additional context
N/A