mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
style remaing chat messages
This commit is contained in:
parent
e4820dd6bd
commit
76cfcb29ea
9 changed files with 103 additions and 59 deletions
|
|
@ -7,9 +7,13 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
|||
});
|
||||
|
||||
const actor = game.actors.get(this.speaker.actor);
|
||||
const actorData = actor ?? { img: 'icons/svg/mystery-man.svg', name: '' };
|
||||
const actorData = actor ?? {
|
||||
img: this.author.avatar ? this.author.avatar : '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({ actor: actorData });
|
||||
const html = await super.renderHTML({ actor: actorData, author: this.author });
|
||||
console.log(this.author);
|
||||
this.applyPermission(html);
|
||||
|
||||
if (this.type === 'dualityRoll') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue