mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Simplify ActiveEffect sheet tags
This commit is contained in:
parent
9f29229c94
commit
cc6fdb47a9
2 changed files with 5 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue