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

Bank system #166

Open
9 tasks
diguifi opened this issue Aug 11, 2021 · 0 comments
Open
9 tasks

Bank system #166

diguifi opened this issue Aug 11, 2021 · 0 comments
Assignees
Labels
new feature New feature to the game

Comments

@diguifi
Copy link
Member

diguifi commented Aug 11, 2021

It would be kinda like a second "bag", but you can only access it when talking to a "banker" npc.
By touching the npc, the following thing happens:
image
your game screen switches to a "bank" element with all stored items in there and by touching an item on your bag, it goes to the bank and vice-versa

  • Think about commands involved
  • Implement server side behaviours
    • Add Bank class and attach it to player
    • Implement Bank methods (adding item, removing item, sending commands to client, etc)
    • Add Bank npc to world
  • Implement client side behaviours
    • Add Bank html element
    • Implement Bank methods (showing items, send correct commands when clicking an item, etc)
  • Save and load player data hash (maybe a different hash, leave player data untouched and used only for login, and a new hash for bank, used when the player interacts with a bank)
@diguifi diguifi added enhancement Improves existing feature new feature New feature to the game and removed enhancement Improves existing feature labels Aug 11, 2021
@diguifi diguifi self-assigned this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature to the game
Projects
None yet
Development

No branches or pull requests

1 participant