Start work on a custom chat message implementation
This commit is contained in:
parent
56fe115407
commit
a09cec7e5f
5 changed files with 39 additions and 1 deletions
11
module/documents/chatMessage/CryptRollMessage.mjs
Normal file
11
module/documents/chatMessage/CryptRollMessage.mjs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { filePath } from "../../consts.mjs";
|
||||
|
||||
export class CryptRollMessage extends ChatMessage {
|
||||
static get template() {
|
||||
switch (this.type) {
|
||||
case `roll`:
|
||||
return filePath(`templates/chat/roll.hbs`);
|
||||
}
|
||||
return super.template;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue