forge-loot turns a table definition into items and delivers them. It rolls weighted entries, mints
instances through forge-items, and either grants them to a container or spills overflow to a world
drop.
Concepts
- Table. A stable
loot:<name> with rolls, weighted entries, and always-included
guaranteed items. An entry can be an item, a quantity range, or nothing.
- Roll vs Grant.
Roll computes a result without delivering; Grant rolls and delivers to a
character (overflow becomes a drop).
Exports
Table shape
qty can be a number or a { min, max } range. A { weight, nothing = true } entry lets a roll
produce nothing.
Configuration
forge-loot ships no content (tables are creator-defined). Config.Tables and the RegisterTable
export are the registration paths. Overflow on Grant spills to a world drop near the character.