From a15522bae2b4753e5507e8c6d170f242d5a0dc32 Mon Sep 17 00:00:00 2001 From: crash1115 <41387713+crash1115@users.noreply.github.com> Date: Sun, 10 Apr 2022 17:29:47 -0400 Subject: [PATCH] Version 0.6.9 (#87) * Update module.json * Fix midi/BR compatibility issue - credit tposney * v0.6.9 Co-authored-by: MrVauxs --- changelog.md | 4 ++++ module.json | 5 +++-- scripts/CrashTrackingAndTraining.js | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 7e8e294..6dd9da7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# Version 0.6.9 +- Restrict module to dnd5e system (credit MrVauxs) +- Fix compatibility issues with MidiQOL and BetterRolls (credit tposney) + # Version 0.6.8 - Fixed some small CSS issues (credit Varriount) - Get rid of some log spam diff --git a/module.json b/module.json index b21e829..b525911 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,8 @@ "url": "https://github.com/crash1115/5e-training", "readme": "https://github.com/crash1115/5e-training/blob/master/README.md", "bugs": "https://github.com/crash1115/5e-training/issues", - "version": "0.6.8", + "version": "0.6.9", + "system": ["dnd5e"], "minimumCoreVersion": "0.8.2", "compatibleCoreVersion": "9", "minimumSystemVersion": "1.3.0", @@ -37,5 +38,5 @@ } ], "manifest": "https://raw.githubusercontent.com/crash1115/5e-training/master/module.json", - "download": "https://github.com/crash1115/5e-training/releases/download/v0.6.8/5e-training.zip" + "download": "https://github.com/crash1115/5e-training/releases/download/v0.6.9/5e-training.zip" } diff --git a/scripts/CrashTrackingAndTraining.js b/scripts/CrashTrackingAndTraining.js index b3a8773..d9e1436 100644 --- a/scripts/CrashTrackingAndTraining.js +++ b/scripts/CrashTrackingAndTraining.js @@ -259,7 +259,7 @@ export default class CrashTrackingAndTraining { static getRollOptions(){ let options = {}; if (game.settings.get("5e-training", "gmOnlyMode")){ options.rollMode = "gmroll"; }; //GM Only Mode - if (!game.modules.get("midi-qol")?.active){ options.vanilla = true; }; //Handles BR. Want it on in all cases except when midi is enabled + if (!game.modules.get("midi-qol")?.active || isNewerVersion(game.modules.get("midi-qol").data.version, "0.9.25")) {options.vanilla = true} //Handles BR. Want it on in all cases except when midi is enabled return options }