1,043
edits
mNo edit summary |
m (use Template:Code Reference) |
||
Line 24: | Line 24: | ||
An attribute modifier increases or decreases by one for each 2 points that the attribute goes above or below <code>16</code>. | An attribute modifier increases or decreases by one for each 2 points that the attribute goes above or below <code>16</code>. | ||
You can use the following formula for calculating an attribute modifier: | You can use the following formula for calculating an attribute modifier:{{Code Reference | namespace = XRL.Rules | class = Stat | method = GetScoreModifier}} | ||
* Stat values of 16 or higher: <code>(value - 16) ÷ 2</code> rounded down. | * Stat values of 16 or higher: <code>(value - 16) ÷ 2</code> rounded down. | ||
* Stat values of 15 or lower: <code>(value - 16) ÷ 2</code> rounded up. | * Stat values of 15 or lower: <code>(value - 16) ÷ 2</code> rounded up. |