Message XP
This commit is contained in:
parent
bf66db92c3
commit
ea3ebeae86
@ -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) {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user