From 6a90581c4ed9c81cd82d6bb5e5d7cad80ecab181 Mon Sep 17 00:00:00 2001 From: Byroks Date: Sat, 21 Sep 2024 10:17:53 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Versteckte=20W=C3=BCrfe=20&=20Ungelernte?= =?UTF-8?q?=20W=C3=BCrfe=20auf=20EW?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/module/rolls/M5Roll.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/module/rolls/M5Roll.ts b/source/module/rolls/M5Roll.ts index 5e296a9..65f32b4 100644 --- a/source/module/rolls/M5Roll.ts +++ b/source/module/rolls/M5Roll.ts @@ -155,14 +155,14 @@ export class M5Roll { async toMessage(toggleAutomatedRoll = false) { let automatedRoll = (game as Game).settings.get("midgard5", "automatedRoll"); automatedRoll = toggleAutomatedRoll ? !automatedRoll : automatedRoll; - const rMode = (game as Game).settings.get("core", "rollMode"); + let rMode = (game as Game).settings.get("core", "rollMode"); if (!automatedRoll) { let checkOptions = await this.popUp({ isPW: this.data.rolls[0].label === (game as Game).i18n.localize("midgard5.pw") }); if (checkOptions["cancelled"]) { return; } else { - const rMode = checkOptions["rollMode"]; + rMode = checkOptions["rollMode"]; this.data.b = checkOptions; } } else { @@ -222,7 +222,7 @@ export class M5Roll { rollData.rolls["0"] = { formula: "1d20 + @i.fw + @i.bonus", enabled: true, - label: (game as Game).i18n.localize("midgard5.pw"), + label: (game as Game).i18n.localize("midgard5.ew"), result: "", total: 0, totalStr: "",