Last active
July 27, 2019 19:15
-
-
Save bronzehedwick/99857034938a71408b5286957b6b6263 to your computer and use it in GitHub Desktop.
Function to generate a D&D/Pathfinder stat modifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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