From 29ce5abb420b9275ef67eb8027d1af2d953e3273 Mon Sep 17 00:00:00 2001 From: cadowtin Date: Sat, 24 Aug 2024 03:26:20 -0500 Subject: [PATCH] Added missing export --- scripts/hooks.js | 2 +- scripts/module.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/hooks.js b/scripts/hooks.js index 00a4028..5d33ec7 100644 --- a/scripts/hooks.js +++ b/scripts/hooks.js @@ -1,5 +1,5 @@ import { MODULE_ID } from "./helper/const.js"; -import { checkActionSupport, getCoolDownTime, updateFrequencyOfActors } from "./module.js"; +import { checkActionSupport, getCoolDownTime, updateFrequency, updateFrequencyOfActors } from "./module.js"; export async function updateItem(item, changes, _diff, _userID) { //Use this to set item flags diff --git a/scripts/module.js b/scripts/module.js index bb40b83..1725518 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -41,7 +41,7 @@ export async function updateFrequencyOfActors( } } -async function updateFrequency(character, total, diff, situation = "default") { +export async function updateFrequency(character, total, diff, situation = "default") { const items = character.items.contents; const relevantItems = items.filter((it) => isItemRelevant(it, total, diff, situation)