Simplify ActiveEffect sheet tags

This commit is contained in:
Carlos Fernandez 2026-06-23 03:36:45 -04:00
parent 9f29229c94
commit cc6fdb47a9
2 changed files with 5 additions and 6 deletions

View file

@ -223,12 +223,11 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
* Generates a list of localized tags based on this item's type-specific properties.
* @returns {string[]} An array of localized tag strings.
*/
_getTags() {
_getTags(rootDocument) {
const tags = [
`${game.i18n.localize(this.parent.system.metadata.label)}: ${this.parent.name}`,
game.i18n.localize(
this.isTemporary ? 'DAGGERHEART.EFFECTS.Duration.temporary' : 'DAGGERHEART.EFFECTS.Duration.passive'
)
rootDocument && rootDocument === this.parent
? _loc(`DOCUMENT.${rootDocument.documentName}`)
: `${_loc(this.parent.system.metadata.label)}: ${this.parent.name}`
];
for (const statusId of this.statuses) {