Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook data extra.rarestProbability only sent once per loot notif #463

Closed
2 tasks done
APKiwi opened this issue Apr 15, 2024 · 4 comments · Fixed by #465
Closed
2 tasks done

Webhook data extra.rarestProbability only sent once per loot notif #463

APKiwi opened this issue Apr 15, 2024 · 4 comments · Fixed by #465
Assignees
Labels
enhancement Improvement to an already existing notifier Notifier: Loot

Comments

@APKiwi
Copy link

APKiwi commented Apr 15, 2024

Checklist

  • I've searched the issues and pull requests for similar looking suggestions.
  • I've checked the Unreleased section of the changelog for newly added features that sound like my suggestion.

Describe your Suggestion

I understand that 'rarestProbability' is indicative of the rarest item. Would it be possible to receive this data for each item (ie extra.items[{item.probability}]? It must exist already as you can determine which item is rarest at some point.

Reasoning

It would be convenient to have this data for analysis and logging rarity of items individually so we can build miscellaneous analytics around who is the most spooned (as we have # of kills), the most unlucky and the most unusually rare drops (receiving a Grimy Dwarf Weed from a Mummy https://oldschool.runescape.wiki/w/Mummy#Ancient_Pyramid) etc.

Additionally beneficial for extreme cases like double uniques from Vorkath or Zulrah.

@APKiwi APKiwi added the enhancement Improvement to an already existing notifier label Apr 15, 2024
@iProdigy iProdigy self-assigned this Apr 16, 2024
@APKiwi
Copy link
Author

APKiwi commented May 28, 2024

Looks like the PR is done, is there something blocking this feat?

@iProdigy
Copy link
Member

iProdigy commented May 28, 2024

I'll try to finish the PR this week (or next week at the latest) - it's still a draft because:

  • i want to check more edge cases that could arise in various NPCs' drop tables that could lead to inaccurate metadata
  • the $O(m)$ algorithm in the PR involves a bit more complexity than the naive $O(n \cdot m)$ approach, so I have to gauge whether the optimization is worth the complexity
  • been busy irl

@APKiwi
Copy link
Author

APKiwi commented May 28, 2024

Legend. Love your work

@iProdigy
Copy link
Member

iProdigy commented Jun 3, 2024

update: could only find the edge case for Sorebones and Zombie pirate (Harmony Island) during The Great Brain Robbery, so I think we're good on that front. The problem with their drop table is they can drop two different items with the same exact name: Bandana eyepatch (in red or blue variation), so our reported probability is the chance of getting any variation rather than the specific color that dropped (and each color has a different drop rate in reality). This edge case is quest-specific and the items are unimportant, so I probably won't bother adding a special case to patch it.

on the second bullet point, technically we're already using the $O(n \cdot m)$ approach, which is easier to review (and uses less memory), so I'll prolly switch back to that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an already existing notifier Notifier: Loot
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants