add working buttons and fix no token selected localization

This commit is contained in:
walther.johnson 2025-07-06 21:59:56 -06:00
parent c8d2429b53
commit e4fa33082e
8 changed files with 97 additions and 107 deletions

View file

@ -111,6 +111,7 @@ export default class DHItem extends foundry.documents.Item {
async toChat(origin) {
const cls = getDocumentClass('ChatMessage');
const systemData = {
title:
this.type === 'ancestry'
@ -127,9 +128,10 @@ export default class DHItem extends foundry.documents.Item {
actions: this.system.actions ?? [],
source: {
actor: this.actor?.uuid ?? this.actor?.id ?? null,
item: this.id
item: this.uuid ?? this.id
}
};
const msg = new cls({
type: 'abilityUse',
user: game.user.id,