Minor: format +/-

Utiliser des classes pour formattage commun plutôt que des ids
This commit is contained in:
Vincent Vandemeulebrouck
2021-11-26 01:00:28 +01:00
parent 05398a74f0
commit 2ea69c4077
5 changed files with 27 additions and 24 deletions

View File

@ -468,10 +468,10 @@ export class RdDActorSheet extends ActorSheet {
this.actor.jetEthylisme();
});
html.find('#jet-vie').click(async event => {
html.find('.jet-vie').click(async event => {
this.actor.jetVie();
});
html.find('#jet-endurance').click(async event => {
html.find('.jet-endurance').click(async event => {
this.actor.jetEndurance();
});
@ -484,28 +484,28 @@ export class RdDActorSheet extends ActorSheet {
this.actor.monnaieIncDec(li.data("item-id"), -1);
});
html.find('#vie-plus').click(async event => {
html.find('.vie-plus').click(async event => {
this.actor.santeIncDec("vie", 1);
});
html.find('#vie-moins').click(async event => {
html.find('.vie-moins').click(async event => {
this.actor.santeIncDec("vie", -1);
});
html.find('#endurance-plus').click(async event => {
html.find('.endurance-plus').click(async event => {
this.actor.santeIncDec("endurance", 1);
});
html.find('#endurance-moins').click(async event => {
html.find('.endurance-moins').click(async event => {
this.actor.santeIncDec("endurance", -1);
});
html.find('#ptreve-actuel-plus').click(async event => {
html.find('.ptreve-actuel-plus').click(async event => {
this.actor.reveActuelIncDec(1);
});
html.find('#ptreve-actuel-moins').click(async event => {
html.find('.ptreve-actuel-moins').click(async event => {
this.actor.reveActuelIncDec(-1);
});
html.find('#fatigue-plus').click(async event => {
html.find('.fatigue-plus').click(async event => {
this.actor.santeIncDec("fatigue", 1);
});
html.find('#fatigue-moins').click(async event => {
html.find('.fatigue-moins').click(async event => {
this.actor.santeIncDec("fatigue", -1);
});
}