RecipeBrowser icon indicating copy to clipboard operation
RecipeBrowser copied to clipboard

Display drop rate for items

Open cryzed opened this issue 6 years ago • 2 comments

Would it be possible to display the drop rate for items in this menu as well?

cryzed avatar Oct 13 '18 12:10 cryzed

Drop rate isn't tracked yet because the way loot is calculated takes a lot of shortcuts that trick the game into dropping items more frequently. Tracking drop rates would mean not taking those shortcuts and possibly lengthening the time calculating loot takes.

I'll get around to testing this eventually. I might be able to figure it out.

JavidPack avatar Oct 13 '18 20:10 JavidPack

Hey, that sounds good! I'm not sure how the code for the item drop is actually implemented, but assuming that it's not just a variable you can query but rather a method you call with some custom (not programmatically accessible) code in it, you might consider calling this method at least n amount of times (or until the first drop occurs) and calculate the average drop rate from that -- I think that might be what you intend. I'm not sure how expensive this would be, but logic would dictate that it would need to be pretty fast anyways.

cryzed avatar Oct 14 '18 18:10 cryzed