Forge of Fortune: Diablo-Style Item Stats, Affixes, Sets and Uniques Kit
- ..
- .metadata266 B
- README.md1.0 KB
- schema.yaml734 B
README.md
gearLootTable (dataType contract)
A gear drop table: the odds of each rarity, the chance of no drop, an item level bonus and an optional list of bases. Gear.rollDrop({ level, depth, luck, seed, table }) rolls one. gearStatsKit ships tier1 to tier4, each with better odds than the last; Gear.defineTable(name, raw) adds one from code.
| Field | Meaning |
|---|---|
id, name | The table id (tier3) and a display name. |
nothingWeight | Weight of dropping nothing (against the sum of the rarity weights). |
common .. legendary | The weight of each rarity. |
levelBonus | Added to the item level the drop is rolled at. |
bases | Only these base ids (empty = every base). |
tier | The table's tier (1 to 4): uniques and set pieces with a minTier above it never drop from it. |
uniqueChance | Chance (0 to 1) that a legendary drop is a fixed-stat unique instead of a random legendary. |
setChance | Chance (0 to 1) that an epic or legendary drop is a set piece. |