From 458e7ddb9f80d25a50a841e04875bdef519a621f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 27 May 2021 21:13:51 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20rendu=20XP=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 8 ++++---- templates/actor-sheet.html | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/module/actor.js b/module/actor.js index 8709a331..86edf308 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 Compétence", newXp, "XP attribués en " + compName); + this.updateExperienceLog("XP", newXp, "XP 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 attribués en " + compName); + this.updateExperienceLog("XP Sort", compValue, "XP 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 compétence " + xpData.competence.name); + this.updateExperienceLog("XP", xpData.xp, "XP 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 carac " + xpData.caracName); + this.updateExperienceLog("XP", xpData.xpCarac, "XP en " + xpData.caracName); } else { xpData.caracRepartitionManuelle = true; } diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 6c035741..114020e1 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -736,11 +736,10 @@