dungeons-of-moria / umoria

Moria: a roguelike Dungeon Crawler game | Umoria Source Code
https://umoria.org
GNU General Public License v3.0
342 stars 71 forks source link

Selling equipment clones the sold item #84

Open HenningKlaskala opened 2 months ago

HenningKlaskala commented 2 months ago

After selling an equipped item, it appears in the shop AND still in the equipment. Another item disappears from the player's inventory. To reproduce this, enter shop 3 with just one weapon in your equipment, and just another weapon in your inventory. Then sell the equipment by typing s/a

By repeatedly selling the same good&heavy weapon you can easily make a lot of gold and reduce your weight below zero. :-)

Expected behavior: The sold item should disappear from the equipment. Tried umoria 5.7.13 (from a Debian archive) and 5.7.15 (compiled on my Debian system).

mrcook commented 1 month ago

Hi @HenningKlaskala , many thanks for the report. As soon as I get a chance I will take a look.