From 17adddd48e54950bee0ee4a0053c79538eb780ca Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Tue, 28 Dec 2021 21:38:35 +0100 Subject: [PATCH] feat: add compatibility with foundry v9 --- src/module/rolls/check-factory.ts | 9 +++++---- src/system.json | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/module/rolls/check-factory.ts b/src/module/rolls/check-factory.ts index 4b0e5c5a..e020880d 100644 --- a/src/module/rolls/check-factory.ts +++ b/src/module/rolls/check-factory.ts @@ -12,7 +12,8 @@ class DefaultCheckOptions implements DS4CheckFactoryOptions { readonly maximumCoupResult = 1; readonly minimumFumbleResult = 20; readonly useSlayingDice = false; - readonly rollMode: foundry.CONST.DiceRollMode = "roll"; + // TODO: Use the type `keyof CONFIG.Dice.rollModes` instead as soon as https://github.com/League-of-Foundry-Developers/foundry-vtt-types/issues/1501 has been resolved. + readonly rollMode: foundry.CONST.DICE_ROLL_MODES = "publicroll"; readonly flavor: undefined; mergeWith(other: Partial): DS4CheckFactoryOptions { @@ -188,7 +189,7 @@ function parseDialogFormData(formData: HTMLFormElement): Partial; speaker?: ReturnType; diff --git a/src/system.json b/src/system.json index 39570916..e9658500 100644 --- a/src/system.json +++ b/src/system.json @@ -33,8 +33,8 @@ "bugs": "https://git.f3l.de/dungeonslayers/ds4/-/issues", "changelog": "https://git.f3l.de/dungeonslayers/ds4/-/releases/1.10.1", "version": "1.10.1", - "minimumCoreVersion": "0.8.9", - "compatibleCoreVersion": "0.8.9", + "minimumCoreVersion": "9.238", + "compatibleCoreVersion": "9.238", "esmodules": ["module/ds4.js"], "styles": ["css/ds4.css"], "languages": [