This commit is contained in:
WBHarry 2026-03-07 18:36:25 +01:00
parent f75468c9e0
commit 2002ac5654
8 changed files with 10 additions and 9 deletions

View file

@ -141,9 +141,9 @@ export default class DHRoll extends Roll {
async render({ flavor, template = this.constructor.CHAT_TEMPLATE, isPrivate = false, ...options } = {}) {
if (!this._evaluated) return;
const appearanceSettings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance);
const automationSettings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation);
const chatData = await this._prepareChatRenderContext({ flavor, isPrivate, ...options });
return foundry.applications.handlebars.renderTemplate(template, { ...chatData, appearanceSettings });
return foundry.applications.handlebars.renderTemplate(template, { ...chatData, automationSettings });
}
/** @inheritDoc */