From b548d952038e014bfeee13f1c6f1d2176ea544bc Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 28 Jun 2021 16:50:52 +0200 Subject: [PATCH] /exp uniquement sur personnage et messages XP uniquement pour MJ --- module/actor.js | 4 ++-- module/rdd-utility.js | 2 +- system.json | 2 +- templates/enum-categorie-vehicule.html | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/actor.js b/module/actor.js index 1444840d..c3b58a76 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2077,7 +2077,7 @@ export class RdDActor extends Actor { xp: carac.xp } 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) }); } @@ -2108,7 +2108,7 @@ export class RdDActor extends Actor { archetypeWarning: newCompData.data.niveau > compData.data.niveau_archetype } 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) }); } diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 1335b4af..73a63e4b 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -894,7 +894,7 @@ export class RdDUtility { } if (nomJoueur == undefined) { for (let actor of game.actors) { - if (actor.hasPlayerOwner) { + if (actor.hasPlayerOwner && actor.isPersonnage() ) { actor.addCompteurValue('stress', stressValue, raison); ui.notifications.info(`${actor.name} a reçu ${stressValue} points de Stress (raison : ${raison})`); } diff --git a/system.json b/system.json index 3e8a04a3..4ae6c883 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.4.35", + "version": "1.4.36", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "0.8.99", diff --git a/templates/enum-categorie-vehicule.html b/templates/enum-categorie-vehicule.html index 106c61df..f794172a 100644 --- a/templates/enum-categorie-vehicule.html +++ b/templates/enum-categorie-vehicule.html @@ -2,6 +2,6 @@ - - + +