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

[BUG] Inventory duplicate on equip #25

Closed
ErwinsExpertise opened this issue Sep 9, 2020 · 1 comment
Closed

[BUG] Inventory duplicate on equip #25

ErwinsExpertise opened this issue Sep 9, 2020 · 1 comment
Labels

Comments

@ErwinsExpertise
Copy link
Contributor

I have noticed when either equipping an item from the inventory will allow it to be duplicated.

Steps to recreate:
Obtain item
Equip to character
Relog

Item will then be present on avatar as well as another in the inventory. I haven't really been able to look into this much but creating an issue to log the bug. I am working on monster status/skills atm so I am not able to address this bug at this time.

@Hucaru
Copy link
Owner

Hucaru commented Sep 9, 2020

The inventory system is a bit of a mess as I wrote it to have something there to work with when testing other systems. The whole thing needs a rewrite along with consideration of how & when database updates should occur.

Edit: the player package should probably have an inventory.go file with a struct dedicated to inventory and it's operations including saving and loading.

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

No branches or pull requests

2 participants