Some styles

This commit is contained in:
Vlyan
2021-01-04 17:26:59 +01:00
parent f61a95e6fc
commit 3b261f5d10
3 changed files with 27 additions and 2 deletions

View File

@@ -200,10 +200,11 @@ export class RollL5r5e extends Roll {
// Define chat data
const chatData = {
// borderColor: game.user.color, // don't work :/
formula: isPrivate ? "???" : this._formula,
flavor: isPrivate ? null : chatOptions.flavor,
user: chatOptions.user,
isPublicRoll: !chatOptions.isPrivate,
isPublicRoll: !isPrivate,
tooltip: isPrivate ? "" : await this.getTooltip({ from: "render" }),
total: isPrivate ? "?" : Math.round(this._total * 100) / 100,
data: this.data,
@@ -251,6 +252,7 @@ export class RollL5r5e extends Roll {
// Prepare chat data
messageData = mergeObject(
{
borderColor: game.user.color,
user: game.user._id,
type: template,
content: this._total,