switch to new method of finding fear dialog
This commit is contained in:
parent
89c357d6da
commit
a0bc314e0d
@ -1,5 +1,3 @@
|
|||||||
/* globals coreFearDialog */
|
|
||||||
/* globals swpfFearDialog */
|
|
||||||
export const moduleName = 'swade-mb-helpers';
|
export const moduleName = 'swade-mb-helpers';
|
||||||
|
|
||||||
export function log(...args) {
|
export function log(...args) {
|
||||||
@ -72,9 +70,9 @@ export class moduleHelpers {
|
|||||||
static get fearTableHelper() {
|
static get fearTableHelper() {
|
||||||
switch (moduleHelpers.rulesVersion) {
|
switch (moduleHelpers.rulesVersion) {
|
||||||
case 'swade':
|
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':
|
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');
|
throw new ReferenceError('No premium module active. No fear table found');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user