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 @@