Formating changes

the carac update used competence update method
This commit is contained in:
2020-11-18 18:37:15 +01:00
parent 9a573d5f51
commit f3084b2d60
6 changed files with 16 additions and 10 deletions

View File

@ -291,7 +291,7 @@ export class RdDActorSheet extends ActorSheet {
this.actor.setPointsDeSeuil(event.currentTarget.value);
} );
// On competence change
// On competence xp change
html.find('.competence-xp').change((event) => {
let compName = event.currentTarget.attributes.compname.value;
this.actor.updateCompetenceXP( compName, parseInt(event.target.value) );
@ -320,14 +320,14 @@ export class RdDActorSheet extends ActorSheet {
this.actor.santeIncDec("endurance", 1);
this.render(true);
});
html.find('#ptreve-actuel-plus').click((event) => {
this.actor.updatePointsDeReve(1);
this.render(true);
});
html.find('#endurance-moins').click((event) => {
this.actor.santeIncDec("endurance", -1);
this.render(true);
});
html.find('#ptreve-actuel-plus').click((event) => {
this.actor.updatePointsDeReve(1);
this.render(true);
});
html.find('#ptreve-actuel-moins').click((event) => {
this.actor.updatePointsDeReve(-1);
this.render(true);