gearKit.package
- ..
- .metadata311 B
- README.md1.5 KB
- schema.yaml798 B
README.md
gearAffix (dataType contract)
One random modifier a rolled item can carry: "+12% Move Speed", "+3 Life on Hit". Every .data asset bound to gearKit.gearAffix anywhere in a world is found by itself (or Gear.defineAffix(raw) from code). Rarity decides how many affixes an item rolls (common 0, uncommon 1, rare 2, epic 3, legendary 4); an item never rolls two affixes on the same stat.
| Field | Meaning |
|---|---|
id | Stable id. |
stat | The gearKit stat it adds to (damage, damagePercent, attackSpeed, critChance, maxHealth, armor, moveSpeed, cooldownSpeed, lifeOnHit, resourceRegen, fireResist, coldResist, lightningResist, or a stat a game added with Gear.defineStat). Whether it reads as flat or percent comes from the stat. |
type | prefix or suffix: where its name goes in the item's name ("Serrated Sword" / "Sword of the Bear"). |
min, max | The value range at item level 1, before quality. |
perLevel | Growth per item level above 1 (0.05 = +5% of the value per level). |
round | Decimal places kept (0 = whole numbers). |
kinds | Which gear kinds can roll it (weapon, armour, jewelry). |
slots | Limit to these slots (empty = any slot of those kinds). |
weight | How often it is picked among the affixes allowed. |
minLevel | The lowest item level it appears at. |
nameFantasy, nameScifi | Its name in each naming theme ("of the Bear" / "Mk II"). |