1
Fork 0
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:
Steffo 2022-08-21 02:06:37 +02:00
parent 43bbf99d89
commit eb7982dd28
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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))