From 8c83c6cac81cf57d1595eecd13fd492eb1fb0f54 Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Sun, 6 Jul 2025 22:59:22 +0200 Subject: [PATCH] remove circular dependency --- module/data/fields/actionField.mjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index da520fd1..b83acc2e 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -1,9 +1,6 @@ -import { actionsTypes } from '../action/_module.mjs'; - -// Temporary Solution export default class ActionField extends foundry.data.fields.ObjectField { getModel(value) { - return actionsTypes[value.type] ?? actionsTypes.attack; + return game.system.api.models.actions.actionsTypes[value.type] ?? game.system.api.models.actions.actionsTypes.attack; } /* -------------------------------------------- */