Rework to level up once at a time

This commit is contained in:
WBHarry 2025-06-06 02:33:38 +02:00
parent 37b8c9bd37
commit 43444dfd42
16 changed files with 653 additions and 739 deletions

View file

@ -3,6 +3,10 @@ import { DualityRollColor } from '../data/settings/Appearance.mjs';
export default class DhpChatMessage extends 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();