Forge of Fortune: Diablo-Style Item Stats, Affixes, Sets and Uniques Kit
README.md
gearStatsKitTests
The gearStatsKit suite, 15 tests. It checks that rolled ids are deterministic and encode base, rarity and level; that a rolled id and a unique id inventoryKit never saw are rebuilt through a freshly registered resolver; that rarity sets the affix count; that 20+ affixes ship covering every stat family and every one rolls; that every affix's stat reaches the abilitiesKit character by exactly its value when equipped and comes off exactly on unequip (and that rolled gear moves abilitiesKit by exactly its summed bonuses); that uniques carry exactly their data lines; that set bonuses turn on at 2 / 3 / 4 pieces and off when a piece comes off, on the character and on the tooltip (worn pieces lit, inactive bonuses greyed); that over 3000 drops each the four tiers drop more often with better rarity, tier1 drops no uniques or sets and tier4 drops both; compare deltas and verdicts; that all six looks build the card, the stats panel and a button at desktop and phone scale; that all six card styles build in every look for a rolled item, a unique and a set piece, keeping the verdict and the power change; that setCardStyle switches the card live and fires its event; the catalogue and content from code; that the version and the README (affixes, uniques, sets, looks, card styles) agree with the kit; and that both guides ship and link each other.
It runs in edit mode, needs no player and has no waits (temporary characters spawn far below the scene). The HUD in play is checked by playing the showcase scene.
Run it: zero tests run gearStatsKitTests (Luau: tools.use("tests", "run", "gearStatsKitTests")).