Fix mod check
parent
1c54f860fa
commit
89876df526
|
@ -7,3 +7,4 @@ __pycache__
|
||||||
.vscode
|
.vscode
|
||||||
.coverage
|
.coverage
|
||||||
.hypothesis
|
.hypothesis
|
||||||
|
.direnv
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue