Ajout bouton augmenter niveau

This commit is contained in:
Vincent Vandemeulebrouck
2021-05-28 00:55:22 +02:00
parent 63d5281a0c
commit 41bb5ca919
6 changed files with 78 additions and 26 deletions

View File

@ -440,7 +440,15 @@ export class RdDActorSheet extends ActorSheet {
RdDUtility.toggleAfficheContenu(myID);
this.render(true);
});
html.find('.carac-xp-augmenter').click((event) => {
let caracName = event.currentTarget.name.replace("augmenter.", "");
this.actor.updateCaracXPAuto(caracName);
});
html.find('.competence-xp-augmenter').click((event) => {
let compName = event.currentTarget.attributes.compname.value;
this.actor.updateCompetenceXPAuto(compName);
});
if (this.options.editCaracComp) {
// On carac change
html.find('.carac-value').change((event) => {