Messages d'expérience privés
Toujours envoyer les messages au MJ + joueur, pas à tout le monde Sinon, l'expérience des PNJs est visible en cas de jet publics
This commit is contained in:
parent
545dff3b29
commit
db8f17fbc5
@ -2112,7 +2112,8 @@ export class RdDActor extends Actor {
|
||||
xp: carac.xp
|
||||
}
|
||||
if (display) {
|
||||
ChatUtility.createChatWithRollMode(this.name, {
|
||||
ChatMessage.create({
|
||||
whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name),
|
||||
content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-carac-xp.html`, checkXp)
|
||||
});
|
||||
}
|
||||
@ -2143,7 +2144,8 @@ export class RdDActor extends Actor {
|
||||
archetypeWarning: newCompData.data.niveau > compData.data.niveau_archetype
|
||||
}
|
||||
if (display) {
|
||||
ChatUtility.createChatWithRollMode(this.name, {
|
||||
ChatMessage.create({
|
||||
whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name),
|
||||
content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-competence-xp.html`, checkXp)
|
||||
});
|
||||
}
|
||||
@ -2157,11 +2159,10 @@ export class RdDActor extends Actor {
|
||||
if (!this.isPersonnage()) return;
|
||||
let xpData = await this._appliquerExperience(rollData.rolled, rollData.selectedCarac.label, rollData.competence);
|
||||
if (xpData && display) {
|
||||
let message = {
|
||||
ChatMessage.create({
|
||||
whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name),
|
||||
content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-gain-xp.html`, xpData)
|
||||
}
|
||||
ChatMessage.create(message);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user