[kt\any] Drop Table 4 DSL
feedback is welcome and appreciated
if you use this in your project or server, attribution please :)
This post was originally created to show off my old crappy drop table dsl, but has now evolved to be much more flexible and powerful tahn I could have imagined.. If you want to check out older versions of DropTable, there is a link at the bottom of this post to the repository.
heyo. while working on NBX, I came across some more ugly disgusting code related to generating an item based on rarity. superman to the rescue, because i know this plagues other servers as well.
as usual, heres something ive created to further streamline development for myself that i know other aspiring developers (the good ones probably beat the shit out of me with their code lol) could find useful. this is very similar to my last snippet-type post of the same nature: drop table creator. I have improved greatly upon that older model, which (for some god forsaken reason, what was I thinking?) required you to put in the TOTAL slots AND the weights as well as assigning IDs to each bracket and putting those in an array. DropTable DSL uses much less brainpower to write and is much more powerful in terms of flexibility
Benefits of using DropTable over commonly used drop rate-ish systems- Intuitive
- It just makes sense to use. Once you understand what a producer is and how it works, it is a breeze to get going.
- Flexibility
- Put your own producers wherever you like! The ones contained are just sample implementations
- Customizability
- Make the most simple or the most complex producer you want. You can leave it be or stick it in a table or... whatever you want to do with it! The possibilities are hard to count!
- Code completion
- No more text editing for drop table editors!
Bitbucket DT4: https://bitbucket.org/Nbness2/droptable/src/master/
Bitbucket DT Jars: https://bitbucket.org/Nbness2/droptable/downloads/