mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Roll Chat message new design template
This commit is contained in:
parent
f14cb3936a
commit
a3ef43aad6
21 changed files with 733 additions and 276 deletions
|
|
@ -7,6 +7,12 @@ export default class DHRoll extends Roll {
|
|||
if (!this.data || !Object.keys(this.data).length) this.data = options.data;
|
||||
}
|
||||
|
||||
get title() {
|
||||
return game.i18n.localize(
|
||||
"DAGGERHEART.GENERAL.Roll"
|
||||
);
|
||||
}
|
||||
|
||||
static messageType = 'adversaryRoll';
|
||||
|
||||
static DefaultDialog = D20RollDialog;
|
||||
|
|
@ -85,6 +91,8 @@ export default class DHRoll extends Roll {
|
|||
msg = {
|
||||
type: this.messageType,
|
||||
user: game.user.id,
|
||||
title: roll.title,
|
||||
speaker: cls.getSpeaker(),
|
||||
sound: config.mute ? null : CONFIG.sounds.dice,
|
||||
system: config,
|
||||
rolls: [roll]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue