diff --git a/icons/heures/hd05br.png b/icons/heures/hd05br.png new file mode 100644 index 00000000..bdc5b95f Binary files /dev/null and b/icons/heures/hd05br.png differ diff --git a/icons/heures/hd08br.png b/icons/heures/hd08br.png new file mode 100644 index 00000000..31ef014d Binary files /dev/null and b/icons/heures/hd08br.png differ diff --git a/icons/heures/hd12br.png b/icons/heures/hd12br.png new file mode 100644 index 00000000..c5ec83c3 Binary files /dev/null and b/icons/heures/hd12br.png differ diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 8d1c4e76..a914bc30 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -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) ); @@ -324,6 +324,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('#ptreve-actuel-moins').click((event) => { + this.actor.updatePointsDeReve(-1); + this.render(true); + }); html.find('#fatigue-plus').click((event) => { this.actor.santeIncDec("fatigue", 1); this.render(true); diff --git a/module/actor.js b/module/actor.js index 96928240..802d1a80 100644 --- a/module/actor.js +++ b/module/actor.js @@ -455,9 +455,9 @@ export class RdDActor extends Actor { updateCarac( caracName, caracValue ) { let caracpath = "data.carac." + caracName + ".value" - if (caracName == reve) { + if (caracName == "reve") { if (caracValue > Misc.toInt(this.data.data.reve.seuil.value)) { - this.setPointDeSeuil(caracValue); + this.setPointsDeSeuil(caracValue); } } this.update( { caracpath: caracValue } ); diff --git a/styles/simple.css b/styles/simple.css index ca0ed781..bb30998f 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -454,6 +454,12 @@ button { flex-grow: 2; } .attribut-value, +.carac-value { + flex-grow: 0; + flex-basis: 64px; + margin-right: 4px; + margin-left: 4px; +} .sante-value, .competence-value { flex-grow: 0; diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 17f1663b..7c358b3c 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -14,14 +14,18 @@ /{{data.sante.vie.max}}
- Endurance + / - + Endurance + / - /{{data.sante.endurance.max}}
Sonné :
- +
+ Rêve + / - + /{{data.reve.seuil.value}} +
+
Fatigue + / - {{{data.fatigueHTML}}} @@ -66,7 +70,7 @@ {{#if carac.derivee}} {{else}} - + {{/if}} @@ -282,7 +286,7 @@
Dormir une heure - Chateau Dormant + Chateau Dormant
    @@ -406,15 +410,11 @@
  1. - Montée dans les Terres Medianes ! - Montée accélérée dans les Terres Medianes ! + Montée dans les Terres Medianes ! + Montée accélérée dans les Terres Medianes ! Regarder les Terres Medianes
  2. -
  3. - Points de Rêve actuels : - -
  4. Seuil de Rêve :