Merge remote-tracking branch 'origin/main' into refactor/84-data-models-structure

This commit is contained in:
Joaquin Pereyra 2025-06-03 22:43:10 -03:00
commit 6c147a5c00
4 changed files with 10 additions and 4 deletions

View file

@ -3,6 +3,10 @@ import DHDualityRoll from "../data/chat-message/dualityRoll.mjs";
export default class DhpChatMessage extends foundry.documents.ChatMessage {
async renderHTML() {
if (this.type === 'dualityRoll' || this.type === 'adversaryRoll' || this.type === 'abilityUse') {
this.content = await foundry.applications.handlebars.renderTemplate(this.content, this.system);
}
/* We can change to fully implementing the renderHTML function if needed, instead of augmenting it. */
const html = await super.renderHTML();