/exp uniquement sur personnage et messages XP uniquement pour MJ

This commit is contained in:
sladecraven 2021-06-28 16:50:52 +02:00
parent b02ac1e7e1
commit b548d95203
4 changed files with 6 additions and 6 deletions

View File

@ -2077,7 +2077,7 @@ export class RdDActor extends Actor {
xp: carac.xp xp: carac.xp
} }
if (display) { if (display) {
ChatUtility.createChatMessage(this.name, "default", { ChatUtility.createChatWithRollMode(this.name, {
content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-carac-xp.html`, checkXp) content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-carac-xp.html`, checkXp)
}); });
} }
@ -2108,7 +2108,7 @@ export class RdDActor extends Actor {
archetypeWarning: newCompData.data.niveau > compData.data.niveau_archetype archetypeWarning: newCompData.data.niveau > compData.data.niveau_archetype
} }
if (display) { if (display) {
ChatUtility.createChatMessage(this.name, "default", { ChatUtility.createChatWithRollMode(this.name, {
content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-competence-xp.html`, checkXp) content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-actor-competence-xp.html`, checkXp)
}); });
} }

View File

@ -894,7 +894,7 @@ export class RdDUtility {
} }
if (nomJoueur == undefined) { if (nomJoueur == undefined) {
for (let actor of game.actors) { for (let actor of game.actors) {
if (actor.hasPlayerOwner) { if (actor.hasPlayerOwner && actor.isPersonnage() ) {
actor.addCompteurValue('stress', stressValue, raison); actor.addCompteurValue('stress', stressValue, raison);
ui.notifications.info(`${actor.name} a reçu ${stressValue} points de Stress (raison : ${raison})`); ui.notifications.info(`${actor.name} a reçu ${stressValue} points de Stress (raison : ${raison})`);
} }

View File

@ -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.4.35", "version": "1.4.36",
"manifestPlusVersion": "1.0.0", "manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.8.0", "minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "0.8.99", "compatibleCoreVersion": "0.8.99",

View File

@ -2,6 +2,6 @@
<option value="Barque"> Barque</option> <option value="Barque"> Barque</option>
<option value="Chariot">Charette/Chariot</option> <option value="Chariot">Charette/Chariot</option>
<option value="Carosse">Carosse</option> <option value="Carosse">Carosse</option>
<option value="Cariole à Bras">Cariole à bras</option> <option value="Cariole à Bras">Cariole à Bras</option>
<option value="Autre">Maison</option> <option value="Maison">Maison</option>
<option value="Autre">Autre</option> <option value="Autre">Autre</option>