From ce3c2f21cd095ee4b446ee8cbec40612207665c6 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 6 Dec 2020 21:56:59 +0100 Subject: [PATCH] normaliser reveActuel en reve-actuel --- module/actor-sheet.js | 10 ++++++---- module/actor.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 88ed655f..e027cfc4 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -263,8 +263,8 @@ export class RdDActorSheet extends ActorSheet { this.actor.rollCarac( caracName.toLowerCase() ); }); - html.find('#chance-actuel').click((event) => { - this.actor.rollCarac( 'chance-actuel' ); + html.find('#chance-actuelle').click((event) => { + this.actor.rollCarac( 'chance-actuelle' ); }); html.find('#chance-appel').click((event) => { @@ -276,10 +276,12 @@ export class RdDActorSheet extends ActorSheet { let compName = event.currentTarget.text; this.actor.rollCompetence( compName); }); + // Points de reve actuel html.find('.ptreve-actuel a').click((event) => { - this.actor.rollCarac( 'reveActuel' ); - }); + this.actor.rollCarac( 'reve-actuel' ); + }); + // Roll Weapon1 html.find('.arme-label a').click((event) => { let armeName = event.currentTarget.text; diff --git a/module/actor.js b/module/actor.js index 4ff88bf6..88894768 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1432,7 +1432,7 @@ export class RdDActor extends Actor { getCaracByName(caracName) { switch (caracName) { - case 'reveActuel': + case 'reve-actuel': return { label: 'RĂªve Actuel', value: this.getReveActuel(),