kookehs / risk-of-raindrops

💧 mods for Risk of Rain 2
MIT License
5 stars 4 forks source link

Sometimes clicking on item drops another item instead. #6

Open piecesouliu opened 5 years ago

piecesouliu commented 5 years ago

In multiplayer mode(haven't tested in singleplayer), on clicking an item sometimes results in dropping another item or even an item I currently don't have. I hope this problem can be fixed so the feature is much more usable. Thank you!

kookehs commented 5 years ago

Which version are you using? Also if you could provide steps to reproduce, I can further debug this.

piecesouliu commented 5 years ago

I'm using v1.2.1-alpha. I tested it in singleplayer mode today and it happened again. I had 12 different types of items and when I press tab and click the item I want to drop in the middle section item list (not the one on top of screen), it drops other items. I captured screen when it happened, let me show you.

https://drive.google.com/file/d/1ZueDdGJj2vxpYPkQ2BnYwP3W98HgrMoP/view?usp=sharing

kookehs commented 5 years ago

Based on the code I'm seeing the game reuses item icons. Simply keeping track of the ItemIndex doesn't guarantee ItemIcons have the same ItemIndex as the DropItemController attached to it.