mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-11 03:27:08 +01:00
FIX error on create weapons
This commit is contained in:
parent
b9b4320a7b
commit
fe864f402a
1 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
// import { actionsTypes } from '../action/_module.mjs';
|
import { actionsTypes } from '../action/_module.mjs';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Describes metadata about the item data model type
|
* Describes metadata about the item data model type
|
||||||
|
|
@ -60,8 +60,7 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
||||||
const actionType = {
|
const actionType = {
|
||||||
weapon: 'attack'
|
weapon: 'attack'
|
||||||
}[this.constructor.metadata.type],
|
}[this.constructor.metadata.type],
|
||||||
cls = game.system.api.models.actionsTypes[actionType],
|
cls = actionsTypes[actionType]
|
||||||
// cls = actionsTypes.attack,
|
|
||||||
action = new cls(
|
action = new cls(
|
||||||
{
|
{
|
||||||
_id: foundry.utils.randomID(),
|
_id: foundry.utils.randomID(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue