From ea3ebeae863fdd44753fabb12779f9f9ae019f61 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Thu, 14 Jan 2021 21:58:00 +0100 Subject: [PATCH] Message XP --- module/actor.js | 7 ++++--- system.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/module/actor.js b/module/actor.js index c4c6574f..5896c653 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1503,9 +1503,10 @@ 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', [ "GM", this.name ] ); - message.content = "" + rollData.selectedCarac.label + "" - + xpmsg; + let message = { + whisher: ChatMessage.getWhisperRecipients( ["GM", this.name ] ), + content: "" + rollData.selectedCarac.label + "" + xpmsg, + } ChatMessage.create(message); } if (xpResult && xpResult.xpComp > 0 && rollData.competence) { diff --git a/system.json b/system.json index 1fd18dc5..3f67ddb6 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.2.21", + "version": "1.2.22", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.8",