Log inGet started
Package

api.module

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 the kinds multiplier for what was defeated), counts dry streaks for the pity timer, and returns a weighted item id or nil.
  • pick draws an item by weight alone; define, get, has, ids, items manage tables of any item ids.
  • rate and odds read a table for menus and catalogs; dryStreak and resetPity read and reset the pity counters; seeded gives a deterministic random source.

Ships five twin-stick power-up presets: generous, standard, offense, survival, stingy.