Added basic chat-message.hbs

This commit is contained in:
WBHarry 2025-07-28 22:50:08 +02:00
parent 094e0740dd
commit 078ca3262d
5 changed files with 140 additions and 45 deletions

View file

@ -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') {