Skip to content

AffixStatGrant ​

Inherits: Resource

One stat an affix can give. The affix says WHICH stat; how many points the item gets is decided by the budget of the item (see ItemBudget).

Properties ​

intstat_id0
intweight100
floatcap0.0

Property descriptions ​

int stat_id = 0 ​

The stat (StatDefinition id) the affix gives

int weight = 100 ​

The chance of this grant when the affix picks one or some of its grants (higher = more likely). Not used when the affix gives all of them

float cap = 0.0 ​

The most points this grant can give on one item (0 = no cap). What the cap cuts off goes to the other bonuses of the item