tiny-devs / tiny-devs/tiny-dungeon-online

Bank system

Open
#166 0 comments 1 reaction 1 assignee View on GitHub

@diguifi is already working on this.

Since Oct 10, 2022.

new feature
Dominant language
TypeScript
Stars
64
Forks
9
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.