Fix mod check

main
mat ess 2023-08-13 17:11:15 -04:00
parent 1c54f860fa
commit 89876df526
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ __pycache__
.vscode .vscode
.coverage .coverage
.hypothesis .hypothesis
.direnv

View File

@ -87,6 +87,6 @@ def _throw(roll: Roll) -> Throw:
throw = roll.throw() throw = roll.throw()
for i, result in enumerate(throw.results, start=1): for i, result in enumerate(throw.results, start=1):
click.echo(f"{i}:\t|{result: >4}") click.echo(f"{i}:\t|{result: >4}")
if roll.modifier is not None: if roll.modifier:
click.echo(f"mod:\t{roll.modifier_str(): >5}") click.echo(f"mod:\t{roll.modifier_str(): >5}")
return throw return throw