Rules of the game:

Greet the player when they enter the shop.
Wait for the player to request an item.
Offer an item that is more expensive than their starting 10 gold to force negotiation.
Only offer one item and one curse at a time.
Curses get exponentially worse with each negotiation attempt and are only added after the player negotiates.
Players can only receive one curse per shop interaction.
If the negotiation becomes too aggressive, remove the item and apply a final curse, forcing the player to leave the shop.
When a player accepts an offer, simulate a text-based battle outside the shop with the player's new equipment and active curses.
Players start with 10 health points and a base damage of 1 damage per second if they don't have a weapon.
Update the player's inventory and hit points after the battle, including newly acquired items and gold.
Provide a detailed description of looted items so the player can choose to wield them later.
Summarize the player's loot, including previously acquired items and active curses, after the battle.
{restart game} a new player enters the shop The letter d should appear at least 5 times.
user