Compare commits

..

2 Commits

Author SHA1 Message Date
Byroks 4a9afcf150 v2.7.2 2024-09-21 10:21:19 +02:00
Byroks 6a90581c4e Fix Versteckte Würfe & Ungelernte Würfe auf EW 2024-09-21 10:17:53 +02:00
3 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{
"name": "foundry-system-midgard5",
"version": "2.7.1",
"version": "2.7.2",
"description": "",
"main": "index.js",
"scripts": {
@ -58,4 +58,4 @@
"dependencies": {
"handlebars-helpers": "^0.10.0"
}
}
}

View File

@ -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: "",

View File

@ -3,13 +3,17 @@
"name": "midgard5",
"title": "Midgard 5. Edition",
"description": "The German RPG Midgard 5. Edition",
"version": "2.7.1",
"version": "2.7.2",
"compatibility": {
"minimum": "10",
"verified": "11",
"maximum": "11"
},
"authors": [{ "name": "Byroks" }, { "name": "Le-Frique" }, { "name": "Oskaloq" }],
"authors": [
{"name": "Byroks"},
{"name": "Le-Frique"},
{"name": "Oskaloq"}
],
"scripts": ["bundle.js"],
"styles": ["bundle.css"],
"languages": [
@ -28,4 +32,4 @@
"download": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/releases/download/latest/midgard5.zip?token=2455375115b92bc8d87c93df7159eec232456f2d",
"initiative": "@c.calc.attributes.gw.value",
"license": "LICENSE.txt"
}
}