mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46:12 +01:00
add working buttons and fix no token selected localization
This commit is contained in:
parent
c8d2429b53
commit
e4fa33082e
8 changed files with 97 additions and 107 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue