Selling items which have no sell value resulted in the player getting money taken from them
JordanPlayz158 opened this issue ยท 0 comments
Summary
The ShopParser when encountering no sell property in the json for an item, sets the sell value to -1 (as a way to let you know it can't/shouldn't be sold) so for each item sold, you lose 1 coin.
Steps to reproduce
Try to sell beetroot in the shop (present in feature/tier_one or master, only one example but works for any item with no sell value) and for each beetroot you sell, you go -1.
Expected behaviour
You should not be able to sell items that resolve in a negative amount of coins being added
Mod list
Tale of Kingdoms: A new Conquest v1.0.4
(No other mods)
Possible fixes
Add a check to see if the sell price is above 0.
Relevent logs and/or screenshots/videos
No response
Other
No response