Log inGet started
World

Forge of Fortune: Diablo-Style Item Stats, Affixes, Sets and Uniques Kit

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 gearStatsKit.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.

FieldMeaning
idStable id.
statThe gearStatsKit stat it adds to (damage, damagePercent, attackSpeed, critChance, critDamage, fireDamage, coldDamage, lightningDamage, areaSize, lifeOnHit, lifeSteal, maxHealth, healthRegen, armor, thorns, fireResist, coldResist, lightningResist, moveSpeed, cooldownSpeed, maxResource, resourceRegen, goldFind, magicFind, xpBonus, or a stat a game added with Gear.defineStat). Whether it reads as flat or percent comes from the stat.
typeprefix or suffix: where its name goes in the item's name ("Serrated Sword" / "Sword of the Bear").
min, maxThe value range at item level 1, before quality.
perLevelGrowth per item level above 1 (0.05 = +5% of the value per level).
roundDecimal places kept (0 = whole numbers).
kindsWhich gear kinds can roll it (weapon, armour, jewelry).
slotsLimit to these slots (empty = any slot of those kinds).
weightHow often it is picked among the affixes allowed.
minLevelThe lowest item level it appears at.
nameFantasy, nameScifiIts name in each naming theme ("of the Bear" / "Mk II").