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

Modifying item weight results in incorrect total weight carried #2201

Open
4 tasks
DallinYauney opened this issue Mar 25, 2024 · 1 comment
Open
4 tasks

Comments

@DallinYauney
Copy link

Module(s) Effected

Item/inventory, weight

Expected (Proposed) Behavior

Saving item entry in inventory should recalculate weight based on current weight value and number

Actual Behavior

Weight seems to compound based on previous entries for item weight, along with current item.

Resetting the page seems to trigger a recalculation of the weight, setting it to what it should be

Steps to reproduce (if any)

  • create item, give it a weight of 10 lbs (the total carrying weight should increase by 10. this is as expected)
  • edit item, setting weight to 20 lbs (the total weight should now be 40, instead of 20)

...just for fun, since the behavior is weird:

  • edit item again, setting weight back to 10 lbs (the total weight should now be 30)
  • edit item again, setting weight to 20 lbs again (the total weight should now be 80)

Tasks to complete (if multiple)

🤷

@Sonictherocketman
Copy link
Member

Thanks for filing this! We will take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
  NODES
COMMUNITY 2
Project 3
USERS 1