From a0bc314e0da752f1d49029c7264a4b5cef0e573d Mon Sep 17 00:00:00 2001 From: Mike Bloy Date: Sun, 26 Jan 2025 20:57:50 -0600 Subject: [PATCH] switch to new method of finding fear dialog --- src/module/globals.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/module/globals.js b/src/module/globals.js index 283eb00..928b5c5 100644 --- a/src/module/globals.js +++ b/src/module/globals.js @@ -1,5 +1,3 @@ -/* globals coreFearDialog */ -/* globals swpfFearDialog */ export const moduleName = 'swade-mb-helpers'; export function log(...args) { @@ -72,9 +70,9 @@ export class moduleHelpers { static get fearTableHelper() { switch (moduleHelpers.rulesVersion) { case 'swade': - return coreFearDialog; // defined as global by the swade module + return game.swadeCore.macros.coreFearDialog; // defined as global by the swade module case 'swpf': - return swpfFearDialog; // defined as global by the swpf module + return game.swpfCore.macros.coreFearDialog; // defined as global by the swpf module } throw new ReferenceError('No premium module active. No fear table found'); }