Drop Tables Kit: Weighted Loot Rolls with Pity Timer
README.md
dropTablesKit.api
Weighted drop tables with a pity timer, called by a game's kill, crate or chest handler (on the host in multiplayer).
roll(tableId, kind?, rng?)rolls the table's chance (scaled by thekindsmultiplier for what was defeated), counts dry streaks for the pity timer, and returns a weighted item id or nil.pickdraws an item by weight alone;define,get,has,ids,itemsmanage tables of any item ids.rateandoddsread a table for menus and catalogs;dryStreakandresetPityread and reset the pity counters;seededgives a deterministic random source.
Ships five twin-stick power-up presets: generous, standard, offense, survival, stingy.