From 0791fc75fa71c32f49dfafd8270710414722f447 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 27 May 2021 21:30:42 +0200 Subject: [PATCH] distinction changement d'xp vs gain d'xp --- module/actor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/actor.js b/module/actor.js index 86edf308..77d31eac 100644 --- a/module/actor.js +++ b/module/actor.js @@ -840,7 +840,7 @@ export class RdDActor extends Actor { this.checkCompetenceXP(compName, newXp); const update = { _id: comp.id, 'data.xp': newXp }; await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity - this.updateExperienceLog("XP", newXp, "XP en " + compName); + this.updateExperienceLog("XP", newXp, "XP modifié en " + compName); } else { console.log("Competence not found", compName); } @@ -854,7 +854,7 @@ export class RdDActor extends Actor { compValue = compValue ?? 0; const update = { _id: comp.id, 'data.xp_sort': compValue }; await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity - this.updateExperienceLog("XP Sort", compValue, "XP en sort de " + compName); + this.updateExperienceLog("XP Sort", compValue, "XP modifié en sort de " + compName); } else { console.log("Competence not found", compName); } @@ -2822,7 +2822,7 @@ export class RdDActor extends Actor { let update = { _id: xpData.competence._id, 'data.xp': newXp }; await this.updateEmbeddedDocuments('Item', [update]); xpData.checkComp = await this.checkCompetenceXP(xpData.competence.name, undefined, false); - this.updateExperienceLog("XP", xpData.xp, "XP en " + xpData.competence.name); + this.updateExperienceLog("XP", xpData.xp, "XP gagné en " + xpData.competence.name); } } @@ -2835,7 +2835,7 @@ export class RdDActor extends Actor { selectedCarac.xp = Misc.toInt(selectedCarac.xp) + xpData.xpCarac; await this.update({ "data.carac": carac }); xpData.checkCarac = await this.checkCaracXP(selectedCarac.label, false); - this.updateExperienceLog("XP", xpData.xpCarac, "XP en " + xpData.caracName); + this.updateExperienceLog("XP", xpData.xpCarac, "XP gagné en " + xpData.caracName); } else { xpData.caracRepartitionManuelle = true; }