#118 - Info sur XP pour le J

This commit is contained in:
sladecraven 2021-01-11 18:11:25 +01:00
parent ce97911781
commit 213d02c2b0
2 changed files with 2 additions and 1 deletions

View File

@ -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 = "<br>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 = "<strong>" + rollData.selectedCarac.label + "</strong>"
+ xpmsg;
ChatMessage.create(message);

View File

@ -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)