Skip to content

Instantly share code, notes, and snippets.

@bronzehedwick
Last active July 27, 2019 19:15
Show Gist options
  • Save bronzehedwick/99857034938a71408b5286957b6b6263 to your computer and use it in GitHub Desktop.
Save bronzehedwick/99857034938a71408b5286957b6b6263 to your computer and use it in GitHub Desktop.
Function to generate a D&D/Pathfinder stat modifier
function generateStatMod(score) {
return Math.floor((score - 10) / 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment