mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Added basic chat-message.hbs
This commit is contained in:
parent
094e0740dd
commit
078ca3262d
5 changed files with 140 additions and 45 deletions
|
|
@ -6,8 +6,10 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
|||
_source: this.system._source
|
||||
});
|
||||
|
||||
const actor = game.actors.get(this.speaker.actor);
|
||||
const actorData = actor ?? { img: 'icons/svg/mystery-man.svg', name: '' };
|
||||
/* We can change to fully implementing the renderHTML function if needed, instead of augmenting it. */
|
||||
const html = await super.renderHTML();
|
||||
const html = await super.renderHTML({ actor: actorData });
|
||||
this.applyPermission(html);
|
||||
|
||||
if (this.type === 'dualityRoll') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue