Moved mod_str function from forms.py back to stats.py, and black formatting.

This commit is contained in:
Mark Wolfman
2021-07-07 10:29:46 -05:00
parent 8a054b335f
commit a31b9eb42c
10 changed files with 99 additions and 59 deletions
+5
View File
@@ -30,6 +30,11 @@ from dungeonsheets.features import (
log = logging.getLogger(__name__)
def mod_str(modifier):
"""Converts a modifier to a string, eg 2 -> '+2'."""
return "{:+d}".format(modifier)
AbilityScore = namedtuple("AbilityScore", ("value", "modifier", "saving_throw"))