diff --git a/module/data/action/baseAction.mjs b/module/data/action/baseAction.mjs index 8f0e0682..1cc370d5 100644 --- a/module/data/action/baseAction.mjs +++ b/module/data/action/baseAction.mjs @@ -351,4 +351,17 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel }); } } + + /** + * Generates a list of localized tags for this action. + * @returns {string[]} An array of localized tag strings. + */ + _getTags() { + const tags = [ + game.i18n.localize(`DAGGERHEART.ACTIONS.TYPES.${this.type}.name`), + game.i18n.localize(`DAGGERHEART.CONFIG.ActionType.${this.actionType}`) + ]; + + return tags; + } } diff --git a/templates/sheets/global/partials/inventory-item-V2.hbs b/templates/sheets/global/partials/inventory-item-V2.hbs index b114cf0a..656145c7 100644 --- a/templates/sheets/global/partials/inventory-item-V2.hbs +++ b/templates/sheets/global/partials/inventory-item-V2.hbs @@ -44,6 +44,7 @@ Parameters: {{!-- Attack Tags End --}} {{else}} + {{!-- Other elements Tags Start --}} {{#with item}} {{#if (not ../hideTags)}}
@@ -70,20 +71,7 @@ Parameters: {{/if}} {{/with}} {{/if}} - - - {{!-- Action Block Start --}} - {{#if (eq type 'action')}} - {{#if (not hideTags)}} -
-
{{localize (concat 'DAGGERHEART.ACTIONS.TYPES.' item.type '.name')}}
-
{{localize (concat 'DAGGERHEART.CONFIG.ActionType.' item.actionType)}}
-
- {{else if (not hideLabels)}} - {{!-- Empty --}} - {{/if}} - {{/if}} - {{!-- Action Block End --}} + {{!-- Other elements Tags End --}}
{{!-- Simple Resource --}}