diff --git a/module/applications/chatMessage.mjs b/module/applications/chatMessage.mjs index dfd32b3a..30bd0a27 100644 --- a/module/applications/chatMessage.mjs +++ b/module/applications/chatMessage.mjs @@ -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(); diff --git a/module/applications/resources.mjs b/module/applications/resources.mjs index 535a1631..86f85178 100644 --- a/module/applications/resources.mjs +++ b/module/applications/resources.mjs @@ -105,6 +105,5 @@ export default class Resources extends HandlebarsApplicationMixin(ApplicationV2) if(!game.user.isGM) return; value = Math.max(0, Math.min(this.maxFear, value)); await game.settings.set(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.Resources.Fear, value); - await this.render(true); } } \ No newline at end of file diff --git a/module/applications/settings.mjs b/module/applications/settings.mjs index c86af3a7..4a885d17 100644 --- a/module/applications/settings.mjs +++ b/module/applications/settings.mjs @@ -179,7 +179,10 @@ export const registerDHSettings = () => { scope: 'world', config: false, type: Number, - default: 0 + default: 0, + onChange: () => { + if(ui.resources) ui.resources.render({force: true}); + } }); game.settings.register(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.Resources.MaxFear, { diff --git a/styles/daggerheart.css b/styles/daggerheart.css index a5550802..a99ffbd7 100755 --- a/styles/daggerheart.css +++ b/styles/daggerheart.css @@ -2889,14 +2889,14 @@ div.daggerheart.views.multiclass { font-style: normal; font-weight: 400; font-display: swap; - src: url(https://fonts.gstatic.com/s/cinzel/v23/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnTYo.ttf) format('truetype'); + src: url(https://fonts.gstatic.com/s/cinzel/v25/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnTYo.ttf) format('truetype'); } @font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap; - src: url(https://fonts.gstatic.com/s/cinzel/v23/8vIU7ww63mVu7gtR-kwKxNvkNOjw-jHgTYo.ttf) format('truetype'); + src: url(https://fonts.gstatic.com/s/cinzel/v25/8vIU7ww63mVu7gtR-kwKxNvkNOjw-jHgTYo.ttf) format('truetype'); } @font-face { font-family: 'Cinzel Decorative';