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

Improve PlayerInventory implementation #222

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Conversation

Jikoo
Copy link
Owner

@Jikoo Jikoo commented Jul 12, 2024

  • Fix storage contents including other items
  • Fix regular contents including fake slots
  • Fix type not being PLAYER
  • Prefer slot indices to magic constants
  • Fix held slot being set incorrectly (what the heck, past me)

I think for full plugin compatibility we might actually have to reimplement click handling for full control of the click events, which is sad, I was so hoping to avoid that. We might be able to skate by without it by using a separate backing PlayerInventory implementation for the armor-only version. Honestly, the level of compatibility as-is is probably good enough, but I worry. The levels of spaghetti are already getting out of control with all the garbage for placeholder items.

Having typed all that, I think this is probably good enough. Hello and welcome to my rubber ducking process, I do it in the writeup for changes.

* Fix storage contents including other items
* Fix regular contents including fake slots
* Fix type not being PLAYER
* Prefer slot indices to magic constants
@Jikoo Jikoo enabled auto-merge (squash) July 12, 2024 00:17
@Jikoo Jikoo merged commit bb80d93 into master Jul 12, 2024
2 checks passed
@Jikoo Jikoo deleted the dev/improve-player-inv branch July 12, 2024 00:25
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.

1 participant