Attributes: Difference between revisions

Zippy (talk | contribs)
mNo edit summary
Attribute Modifiers: Attribute modifiers are always rounded down.
 
Line 28: Line 28:
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:{{Code Reference | namespace = XRL.Rules | class = Stat | method = GetScoreModifier}}
You can use the following formula for calculating an attribute modifier:{{Code Reference | namespace = XRL.Rules | class = Stat | method = GetScoreModifier}} <code>(value - 16) &divide; 2</code> rounded down.
* Stat values of 16 or higher: <code>(value - 16) &divide; 2</code> rounded down.
* Stat values of 15 or lower: <code>(value - 16) &divide; 2</code> rounded up.


== Attributes ==
== Attributes ==