mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
roll
: Actually count the modifier
This commit is contained in:
parent
43bbf99d89
commit
eb7982dd28
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,10 @@ async def roll(*, _msg: engi.Message, qty: int, die: int, mod: t.Optional[int],
|
|||
answer.append(f"{result}")
|
||||
total += result
|
||||
|
||||
if mod and mod != 0:
|
||||
answer.append(f"{mod:+}")
|
||||
total += mod
|
||||
|
||||
answer.append(f" = \uE01B{total}\uE00B")
|
||||
|
||||
await _msg.reply(text="".join(answer))
|
||||
|
|
Loading…
Reference in a new issue