Ajout du propriétaire sur les Items

This commit is contained in:
2024-09-05 23:54:02 +02:00
parent ff8a5d7ba3
commit 3b18e0b919
2 changed files with 3 additions and 1 deletions
+2 -1
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}`;
}
/* -------------------------------------------- */