Added Send to chat to JournalEntry

This commit is contained in:
Vlyan
2021-08-03 18:30:31 +02:00
parent b2afa334a0
commit 0116497921
7 changed files with 81 additions and 30 deletions

View File

@@ -1,4 +1,16 @@
/**
* Extends the JournalEntity to process special things from L5R.
*/
export class JournalL5r5e extends JournalEntry {}
export class JournalL5r5e extends JournalEntry {
/**
* Render the text template for this Journal (tooltips and chat)
* @return {Promise<string|null>}
*/
async renderTextTemplate() {
const tpl = await renderTemplate(`${CONFIG.l5r5e.paths.templates}journal/journal-text.html`, this);
if (!tpl) {
return null;
}
return tpl;
}
}