gearUnique.dataType
- .metadata279 B
- README.md1.3 KB
- schema.yaml713 B
README.md
gearUnique (dataType contract)
A fixed-stat item: a named unique ("Doomwhisper") or a piece of an item set. Its stats never roll: every copy carries exactly the lines in stats, at the item level in level. Its item id is gu-<id>, and like a rolled id it rebuilds the same item on every engine. Every .data asset bound to gearStatsKit.gearUnique anywhere in a world is found by itself (or Gear.defineUnique(raw) from code). Loot tables drop uniques on legendary rolls (uniqueChance) and set pieces on epic or legendary rolls (setChance) from tier minTier up.
| Field | Meaning |
|---|---|
id | Stable id (letters, digits, _). The item id is gu-<id>. |
name, nameScifi | The item's name in each naming theme. |
base | The gearStatsKit base it is made on (sword, ring, ...): slot, kind, icon and model come from it. |
rarity | Its rarity colour (default legendary). |
level | Its fixed item level. |
set | The id of the gearSet it belongs to, or empty for a unique. |
minTier | The lowest loot tier (1 to 4) that can drop it. |
weight | How often it is picked among the uniques a drop allows. |
flavor | A line of flavour text for the tooltip. |
stats | The fixed lines: a list of { stat, value } (any gearStatsKit stat). |