From eb7982dd2861414996d4e4dd6c9d97f7a14f6f8c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 21 Aug 2022 02:06:37 +0200 Subject: [PATCH] `roll`: Actually count the modifier --- royalpack/commands/roll.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/royalpack/commands/roll.py b/royalpack/commands/roll.py index a650377d..f4dd8ccb 100644 --- a/royalpack/commands/roll.py +++ b/royalpack/commands/roll.py @@ -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))