mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Improved missing class visual for subclass
This commit is contained in:
parent
09a6b1480f
commit
05167b697a
3 changed files with 17 additions and 6 deletions
|
|
@ -44,9 +44,9 @@ export default class SubclassSheet extends DHBaseItemSheet {
|
|||
async _prepareContext(options) {
|
||||
const context = await super._prepareContext(options);
|
||||
if (this.document.system.linkedClass) {
|
||||
context.class = (await fromUuid(this.document.system.linkedClass)) ?? {
|
||||
const classData = await fromUuid(this.document.system.linkedClass);
|
||||
context.class = classData ?? {
|
||||
name: _loc('DAGGERHEART.GENERAL.missingX', { x: _loc('TYPES.Item.class') }),
|
||||
img: 'systems/daggerheart/assets/icons/documents/items/laurel-crown.svg',
|
||||
missing: true
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue