From 1f9a52426af8ab917eafd96884e71dde8afdae63 Mon Sep 17 00:00:00 2001 From: irbian <3071767+irbian@users.noreply.github.com> Date: Wed, 25 May 2022 23:30:16 +0200 Subject: [PATCH] Update settingsConfig.js Fixes https://github.com/ultrakorne/better-rolltables/issues/154 --- scripts/core/settingsConfig.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/core/settingsConfig.js b/scripts/core/settingsConfig.js index 9c739247..1a57969f 100644 --- a/scripts/core/settingsConfig.js +++ b/scripts/core/settingsConfig.js @@ -42,6 +42,17 @@ export class Settings { BRTCONFIG.ITEM_LOOT_TYPE = 'loot'; BRTCONFIG.SCROLL_REGEX = /\s*Scroll\s*of\s*(\d+)/gi; } + + if (game.system.id === 'D35E') { + defaultLootSheet = 'D35E.LootSheetD35ENPC'; + defaultSpellCompendium = 'D35E.spells'; + + BRTCONFIG.QUANTITY_PROPERTY_PATH = 'data.quantity'; + BRTCONFIG.PRICE_PROPERTY_PATH = 'data.price'; + BRTCONFIG.SPELL_LEVEL_PATH = 'data.level'; + BRTCONFIG.ITEM_LOOT_TYPE = 'loot'; + BRTCONFIG.SCROLL_REGEX = /\s*Scroll\s*of\s*(\d+)/gi; + } game.settings.registerMenu(MODULE.ns, "helpersOptions", { name: i18n("User Interface Integration"), @@ -367,4 +378,4 @@ class BetterRolltableSettingsConfig extends FormApplication { } } -export const PATH = `modules/${MODULE.ns}`; \ No newline at end of file +export const PATH = `modules/${MODULE.ns}`;