·
datatype · drop-in viewer
asset⌬ datatypedataTypeprimary: schema.yaml·part ofpackage gearKit.package·originates fromworld 6cde5352-2…
gearAffix.dataType
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, r…
by·posted 8d ago
What it does
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"). |
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.