diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index 8661f500..2d968fe0 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -141,6 +141,12 @@ export function ActionMixin(Base) { return this.documentName; } + //Getter for icons + get typeIcon() { + const config = CONFIG.DH.ACTIONS.actionTypes[this.type]; + return config?.icon || 'fa-question'; // Fallback icon just in case + } + get relativeUUID() { return `.Item.${this.item.id}.Action.${this.id}`; } diff --git a/templates/sheets/global/partials/inventory-item-V2.hbs b/templates/sheets/global/partials/inventory-item-V2.hbs index 6565d9f1..daf12132 100644 --- a/templates/sheets/global/partials/inventory-item-V2.hbs +++ b/templates/sheets/global/partials/inventory-item-V2.hbs @@ -158,10 +158,12 @@ Parameters:
{{#if (and (eq action.type 'beastform') @root.beastformActive)}} {{else}} {{/if}}