Message XP

This commit is contained in:
sladecraven 2021-01-14 21:58:00 +01:00
parent bf66db92c3
commit ea3ebeae86
2 changed files with 5 additions and 4 deletions

View File

@ -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 = "<br>Points d'expérience gagnés ! Carac: " + xpResult.xpCarac + ", Comp: " + xpResult.xpCompetence;
let message = ChatUtility.prepareChatMessage('gmroll', [ "GM", this.name ] );
message.content = "<strong>" + rollData.selectedCarac.label + "</strong>"
+ xpmsg;
let message = {
whisher: ChatMessage.getWhisperRecipients( ["GM", this.name ] ),
content: "<strong>" + rollData.selectedCarac.label + "</strong>" + xpmsg,
}
ChatMessage.create(message);
}
if (xpResult && xpResult.xpComp > 0 && rollData.competence) {

View File

@ -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",