Method CalculateAbilityModifierFromScore
CalculateAbilityModifierFromScore(byte)
Gets the ability modifier from the given ability score.
public int CalculateAbilityModifierFromScore(byte abilityScore)
Parameters
abilityScorebyteThe ability score to calculate the ability modifier from.
Returns
- int
The ability modifier for the specified ability score.
Remarks
By default, this will return '(ability score - 10) / 2', however this can be different based on definitions in the ruleset.2da.