Ajout du propriétaire sur les Items

This commit is contained in:
2024-09-05 23:44:12 +02:00
parent ff8a5d7ba3
commit 3b18e0b919
2 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,8 @@ export class RdDItemSheet extends ItemSheet {
}
get title() {
return `${Misc.typeName('Item', this.item.type)}: ${this.item.name}`;
const owner = (this.item.parent instanceof Actor) ? `(${this.item.parent.name})` : '';
return `${Misc.typeName('Item', this.item.type)}: ${this.item.name} ${owner}`;
}
/* -------------------------------------------- */