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);
|
let xpResult = this.appliquerExperience(rollData.rolled, rollData.selectedCarac.label, rollData.competence);
|
||||||
if (display && xpResult.result) {
|
if (display && xpResult.result) {
|
||||||
let xpmsg = "<br>Points d'expérience gagnés ! Carac: " + xpResult.xpCarac + ", Comp: " + xpResult.xpCompetence;
|
let xpmsg = "<br>Points d'expérience gagnés ! Carac: " + xpResult.xpCarac + ", Comp: " + xpResult.xpCompetence;
|
||||||
let message = ChatUtility.prepareChatMessage('gmroll', [ "GM", this.name ] );
|
let message = {
|
||||||
message.content = "<strong>" + rollData.selectedCarac.label + "</strong>"
|
whisher: ChatMessage.getWhisperRecipients( ["GM", this.name ] ),
|
||||||
+ xpmsg;
|
content: "<strong>" + rollData.selectedCarac.label + "</strong>" + xpmsg,
|
||||||
|
}
|
||||||
ChatMessage.create(message);
|
ChatMessage.create(message);
|
||||||
}
|
}
|
||||||
if (xpResult && xpResult.xpComp > 0 && rollData.competence) {
|
if (xpResult && xpResult.xpComp > 0 && rollData.competence) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "foundryvtt-reve-de-dragon",
|
"name": "foundryvtt-reve-de-dragon",
|
||||||
"title": "Rêve de Dragon",
|
"title": "Rêve de Dragon",
|
||||||
"description": "Rêve de Dragon RPG for FoundryVTT",
|
"description": "Rêve de Dragon RPG for FoundryVTT",
|
||||||
"version": "1.2.21",
|
"version": "1.2.22",
|
||||||
"manifestPlusVersion": "1.0.0",
|
"manifestPlusVersion": "1.0.0",
|
||||||
"minimumCoreVersion": "0.7.5",
|
"minimumCoreVersion": "0.7.5",
|
||||||
"compatibleCoreVersion": "0.7.8",
|
"compatibleCoreVersion": "0.7.8",
|
||||||
|
Loading…
Reference in New Issue
Block a user