Optionalscore: numberThe score to find the modifier for.
Optionaloptions: { damage?: number; penalty?: number } = {}Options for this function.
Optionaldamage?: numberAbility score damage to take into account.
Optionalpenalty?: numberA penalty value to take into account.
The modifier for the given score.
Determines what ability modifier is appropriate for a given score.