AI was used to help with debugging and fixing. Some of the code was rewritten during this process by the AI (codex)
This module creates a functional NPC merchant for Dungeons and Dragons 5e v 5 onwards.

A shop icon is created on the NPC character sheet which allows for the creation of a shop that players can interact with. The DM can stock the shop from compendiums or world items, change the stock levels and prices.
Once the shop is set up, players can double click the NPC to be presented with the store front where they can purchase items or even sell back items they no longer want.
Items that have no price require DM approval and selling items to the NPC require the DM to set the buy prices. There is functionality to haggle.
For further details and screenshots see the READ ME file which explains in much more detail.