Minor: format +/-
Utiliser des classes pour formattage commun plutôt que des ids
This commit is contained in:
@ -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);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user