dndserver icon indicating copy to clipboard operation
dndserver copied to clipboard

Added support for storing the merchant items in the database

Open itzandroidtab opened this issue 1 year ago • 0 comments

This adds support for the following:

  • support for buying items (with some limitations for now)
  • Items are regenerated after timer expires.
  • Limit on the amount of times you can buy a item
  • Items are stored in the database and the same items will show up after a restart
  • Buying stackable items will stack them
  • Buying an item will update the UI to show the new item
  • Merchants get created when entering the merchant menu for the first time
  • Merchants get deleted when deleting a character.
  • Added mapping for merchant to stock id for correct text next to the merchant when selecting a item
  • Support to buy items with money from the stash (after #175)

There are some limitations for now:

  • Stash/inventory is not synced with merchant inventory/stash (will work on that with the inventory improvements I am thinking of)
  • Currently not all goblin merchant items are mapped. I only added the first one for now

@Snaacky I did not add the alembic update in here yet. When you have reviewed the PR could you send me a DM so I can add it.

itzandroidtab avatar May 02 '23 19:05 itzandroidtab