Merged with development

This commit is contained in:
WBHarry 2026-02-04 00:25:58 +01:00
commit ac998adaa6
7 changed files with 14 additions and 5 deletions

View file

@ -41,7 +41,8 @@ export default class DhCharacter extends BaseDataActor {
min: 0,
integer: true,
label: 'DAGGERHEART.GENERAL.hope'
})
}),
isReversed: new fields.BooleanField({ initial: false })
})
}),
traits: new fields.SchemaField({

View file

@ -159,8 +159,9 @@ export function ActionMixin(Base) {
}
get uuid() {
if (!(this.item instanceof game.system.api.documents.DHItem)) return null;
return `${this.item.uuid}.${this.documentName}.${this.id}`;
const isItem = this.item instanceof game.system.api.documents.DHItem;
const isActor = this.item instanceof game.system.api.documents.DhpActor;
return isItem || isActor ? `${this.item.uuid}.${this.documentName}.${this.id}` : null;
}
get sheet() {