switch to new method of finding fear dialog

This commit is contained in:
Mike Bloy 2025-01-26 20:57:50 -06:00
parent 89c357d6da
commit a0bc314e0d

View File

@ -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');
}