ScottLilly/SOSCSRPG

Problem with selling pointy stick

Opened this issue · 3 comments

If you sell the pointy stick at another vendor before going back to turn in the quest you don’t get the error.

@ScottLilly - not sure if I understand this bug... is this for the snake fang quest? You can sell the pointy stick and then cannot fight the snakes. Do you want to prevent that from happening? Player can always go buy back the pointy stick.

@ScottLilly You could prevent the selling of equipped items.

adding something like this

GameSession.CurrentPlayer.CurrentWeapon = GameSession.CurrentPlayer.Inventory.Weapons.OrderByDescending(x => x.ItemTypeID).First(); auto equipes best weapon?

@ScottLilly You could prevent the selling of equipped items.

adding something like this

GameSession.CurrentPlayer.CurrentWeapon = GameSession.CurrentPlayer.Inventory.Weapons.OrderByDescending(x => x.ItemTypeID).First(); auto equipes best weapon?

We might need to do FirstOrDefault(), to handle if the Player doesn't have a weapon. I'm working on upgrading the solution to .NET 5, then will start adding changes for these bugs and some other code improvements. It would be nice to clean up a few things before working on improving the UI (hopefully adding a lot more graphics).