nerd sniped myself even further and made a rust crate for droptables

no idea why, just some recreational programming before bed. its fast!

gn nostr 😴

nostr:note13jkvsdzwdcjm8p07p9696klu0ydjluk3z322s20rcwhjd24xr2fqrdwk9c

Reply to this note

Please Login to reply.

Discussion

What’s a drop table?? Or should I ask Grok

Nvm I guess this helps: https://www.keithschwarz.com/darts-dice-coins/

Is for gaming I suppose…?

like this

if it takes 500 boss kills on average for something to drop, you can just specify that drop rate and then when you sample the table it will roll it for you in O(1).

You can have values that don't add up to 1, it all gets normalized.

You can even have it roll multiple tables. one would roll rarity, then you could have it roll all the legendary items if it hits the legendary loot table. you can keep rolling this way.

very common thing in RPGs, so was fun making this library.

What IDE do you use?

plain old vim. used to use neovim but it was buggy

Ever tried helix?

What was buggy in neovim? I only recently graduated from IDEs to neovim. Vim would of course be even more universal and simple.

Weird line wrapping bugs that would happen randomly. Basically a wrapped line would break the terminal.