From 213d02c2b0dd91b93bfbecdbb2ea193cdafec254 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 11 Jan 2021 18:11:25 +0100 Subject: [PATCH] #118 - Info sur XP pour le J --- module/actor.js | 2 +- module/chat-utility.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index 473bd828..0f2d7916 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1482,7 +1482,7 @@ export class RdDActor extends Actor { let xpResult = this.appliquerExperience(rollData.rolled, rollData.selectedCarac.label, rollData.competence); if (display && xpResult.result) { let xpmsg = "
Points d'expérience gagnés ! Carac: " + xpResult.xpCarac + ", Comp: " + xpResult.xpCompetence; - let message = ChatUtility.prepareChatMessage('gmroll', this.name); + let message = ChatUtility.prepareChatMessage('gmroll', [ "GM", this.name ] ); message.content = "" + rollData.selectedCarac.label + "" + xpmsg; ChatMessage.create(message); diff --git a/module/chat-utility.js b/module/chat-utility.js index 4649b4cc..b6cb99ea 100644 --- a/module/chat-utility.js +++ b/module/chat-utility.js @@ -3,6 +3,7 @@ * Class providing helper methods to get the list of users, and */ export class ChatUtility { + /* -------------------------------------------- */ static removeMyChatMessageContaining(part) { const toDelete = game.messages.filter(it => it.user._id == game.user._id)