mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-11 19:45:57 +01:00
remove circular dependency
This commit is contained in:
parent
f038b7ccfd
commit
8c83c6cac8
1 changed files with 1 additions and 4 deletions
|
|
@ -1,9 +1,6 @@
|
||||||
import { actionsTypes } from '../action/_module.mjs';
|
|
||||||
|
|
||||||
// Temporary Solution
|
|
||||||
export default class ActionField extends foundry.data.fields.ObjectField {
|
export default class ActionField extends foundry.data.fields.ObjectField {
|
||||||
getModel(value) {
|
getModel(value) {
|
||||||
return actionsTypes[value.type] ?? actionsTypes.attack;
|
return game.system.api.models.actions.actionsTypes[value.type] ?? game.system.api.models.actions.actionsTypes.attack;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue