#118 - Info sur XP pour le J
This commit is contained in:
parent
ce97911781
commit
213d02c2b0
@ -1482,7 +1482,7 @@ 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', this.name);
|
let message = ChatUtility.prepareChatMessage('gmroll', [ "GM", this.name ] );
|
||||||
message.content = "<strong>" + rollData.selectedCarac.label + "</strong>"
|
message.content = "<strong>" + rollData.selectedCarac.label + "</strong>"
|
||||||
+ xpmsg;
|
+ xpmsg;
|
||||||
ChatMessage.create(message);
|
ChatMessage.create(message);
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
* Class providing helper methods to get the list of users, and
|
* Class providing helper methods to get the list of users, and
|
||||||
*/
|
*/
|
||||||
export class ChatUtility {
|
export class ChatUtility {
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static removeMyChatMessageContaining(part) {
|
static removeMyChatMessageContaining(part) {
|
||||||
const toDelete = game.messages.filter(it => it.user._id == game.user._id)
|
const toDelete = game.messages.filter(it => it.user._id == game.user._id)
|
||||||
|
Loading…
Reference in New Issue
Block a user