-
Notifications
You must be signed in to change notification settings - Fork 83
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
Monsters database: Drops: Add rare drop table parsing #161
Comments
Does this mean we are getting the RDT in the monsters API next to the regular drops? :) |
@BossHuso - yeah, hoping to add this. The rare drop table will just be added into the existing osrsbox-db/scripts/monsters/monsters_drops.py Line 117 in f69dc3d
When I rewrote the code for monster drops in December, it made it much easier to get this done and more accurate - but just haven't got around to converting the wiki page rare drop table values into code. Writing it up should be easy, but I keep procrastinating. |
@osrsbox sounds good, great job <3 Take your time :) |
Oh just wondering btw, how are you going to handle duplicate drops (with different rarity)? Lot of NPCs have items in their regular drop table as well as the RDT. Example |
Good question @BossHuso! To be honest - I have yet to find a good way to generally handle monster drops. I almost removed them late last year, as I think they are inaccurate... But a couple users ask to keep them in, even though they aren't perfect. I switched to using SMW queries to get the data (instead of scraping), and it improved it - a little! There are so many "what if" edge cases (are you on a specific quest, are you wearing a ring of wealth, are you on a wildy slay task, are you in the catacombs etc. etc.). To answer your question - I would probably just add another entry in the |
@osrsbox Oh please don't :) I don't think they are inaccurate at all. Ofcourse there will always be some incorrect data, but not really that much to say it's useless. To be honest, I don't care about the "what if" cases, people who use the API could implement that in their own code base since those are conditional and usually calculated on top of the base droprate anyways. What I noticed is that some monsters already include the RDT while other's dont, is this correct? Example Alchemical Hydra = https://api.osrsbox.com/monsters/8621 Is it a lot of work for you to implement the RDT on all NPCs the same way you did for Steel dragons? I don't mind both being in the Since I can't detect if the loot received was from the RDT in the first place, it's fine that there is no distinction between the two (unless someone fetches your API to get an overview of the loot table ofcourse). FYI: Using your API for https://github.com/BossHuso/discord-rare-drop-notificater :) |
About to close #149 - that issue has surprisingly taken a long time to close, and was tricky to program. All drop tables have been added, apart from the rare drop table. This issue documents the rare drop table addition, and notes while creating it... as there are a few caveats to the design choices.
Template Links:
Documentation links:
The text was updated successfully, but these errors were encountered: