forked from public/foundryvtt-reve-de-dragon
Use hbs extension
This commit is contained in:
@ -2,7 +2,7 @@ import { ChatUtility } from "./chat-utility.js";
|
||||
|
||||
export class RdDRollResult {
|
||||
|
||||
static async displayRollData(rollData, actor = undefined, template = 'chat-resultat-general.html') {
|
||||
static async displayRollData(rollData, actor = undefined, template = 'chat-resultat-general.hbs') {
|
||||
const chatMessage = await ChatUtility.createChatWithRollMode(
|
||||
{ content: await RdDRollResult.buildRollDataHtml(rollData, template) },
|
||||
actor
|
||||
@ -10,7 +10,7 @@ export class RdDRollResult {
|
||||
return chatMessage
|
||||
}
|
||||
|
||||
static async buildRollDataHtml(rollData, template = 'chat-resultat-general.html') {
|
||||
static async buildRollDataHtml(rollData, template = 'chat-resultat-general.hbs') {
|
||||
rollData.show = rollData.show || {};
|
||||
return await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/${template}`, rollData);
|
||||
}
|
||||
|
Reference in New Issue
Block a user