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

Save player equipment #54

Merged
merged 134 commits into from
Mar 5, 2024
Merged

Conversation

snipercup
Copy link
Collaborator

This requires #53 to work. I will publish this PR as a draft to make sure #53 gets merged first.

  • The equipment in the left and right hand is preserved between maps and between save/load game
  • I could not keep the ItemSlot and had to change it to ItemRefSlot because the serialize/deserialize did not work correctly on the ItemSlot, it seems like it lost track of the source inventory. The consequense of using ItemRefSlot is that items do not leave the inventory if they are equipped, so you cannot save space this way. I think this is fine for now. We will work on our own gui later anyway.

When the materials are generated, set the proper uv scaling so they are correctly visualized in-game.
This fixes the situation where if two map editors are opened, only the last one receives input from the scroll wheel
Improved saving loading, added duplicate and delete buttons, icons
Add name and description labels to show info on a tile
Overmap chunks will stay consistent even after changing scenes.
@snipercup snipercup marked this pull request as ready for review March 5, 2024 15:52
@snipercup snipercup merged commit b3e8fcc into Khaligufzel:main Mar 5, 2024
@snipercup snipercup deleted the save-player-equipment branch March 5, 2024 15:52
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