Amélioration rendu XP log
This commit is contained in:
parent
2ebd70827b
commit
458e7ddb9f
@ -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;
|
||||
}
|
||||
|
@ -736,11 +736,10 @@
|
||||
<ul class="item-list alterne-list">
|
||||
{{#each data.experiencelog as |xp key|}}
|
||||
<li class="item flexrow list-item">
|
||||
<label class="description-label competence-label">{{xp.mode}} </label>
|
||||
<label class="description-label competence-label">{{xp.valeur}} </label>
|
||||
<label class="description-label competence-label">{{xp.raison}} </label>
|
||||
<label class="description-label competence-label">{{xp.daterdd}} </label>
|
||||
<label class="description-label competence-label">{{xp.datereel}} </label>
|
||||
<label class="flex-shrink">{{xp.mode}} </label>
|
||||
<label class="flex-grow">{{xp.valeur}} {{xp.raison}} </label>
|
||||
<label class="flex-shrink">{{xp.daterdd}} </label>
|
||||
<label class="flex-shrink">{{xp.datereel}} </label>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user