diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index 9c006beb..4cadeac4 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -152,8 +152,9 @@ export function ActionMixin(Base) { } get uuid() { - if (!(this.item instanceof game.system.api.documents.DHItem)) return null; - return `${this.item.uuid}.${this.documentName}.${this.id}`; + const isItem = this.item instanceof game.system.api.documents.DHItem; + const isActor = this.item instanceof game.system.api.documents.DhpActor; + return isItem || isActor ? `${this.item.uuid}.${this.documentName}.${this.id}` : null; } get sheet() { diff --git a/module/documents/item.mjs b/module/documents/item.mjs index fe62c5bd..67f7d253 100644 --- a/module/documents/item.mjs +++ b/module/documents/item.mjs @@ -185,7 +185,10 @@ export default class DHItem extends foundry.documents.Item { tags: this._getTags() }, actions: item.system.actionsList, - description: this.system.description + description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.system.description, { + relativeTo: this.parent, + rollData: this.parent?.getRollData() ?? {} + }) }; const msg = { diff --git a/system.json b/system.json index 90ebf11d..323cf00d 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "daggerheart", "title": "Daggerheart", "description": "An unofficial implementation of the Daggerheart system", - "version": "1.6.2", + "version": "1.6.3", "compatibility": { "minimum": "13.346", "verified": "13.351",