diff --git a/module/apps/rdd-import-stats.js b/module/apps/rdd-import-stats.js index 1fa1b325..10ec4800 100644 --- a/module/apps/rdd-import-stats.js +++ b/module/apps/rdd-import-stats.js @@ -339,6 +339,7 @@ export class RdDStatBlockParser { static parsePersonnage(statString, actorData) { actorData.reve.seuil.value = actorData.carac.reve.value + actorData.compteurs.chance.value = actorData.carac.chance.value const reveActuel = XRegExp.exec(statString, XRegExp("Rêve actuel\\s+(?\\d+)", 'giu')) actorData.reve.reve.value = reveActuel?.value ? Number(reveActuel.value) : actorData.reve.seuil.value diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 6397ca2a..ed0962d0 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -122,6 +122,7 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/actor/header-hautreve.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/archetype.hbs', 'systems/foundryvtt-reve-de-dragon/templates/actor/vue-detaillee.html', + 'systems/foundryvtt-reve-de-dragon/templates/actor/armures.hbs', 'systems/foundryvtt-reve-de-dragon/templates/actor/carac-main.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/carac-derivee.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/carac-creature.html', diff --git a/template.json b/template.json index 2fe4362d..16de21c0 100644 --- a/template.json +++ b/template.json @@ -459,7 +459,7 @@ "chance": { "value": 0, "max": 0, - "label": "Chance", + "label": "Chance actuelle", "isInput": true }, "destinee": { diff --git a/templates/actor/armures.hbs b/templates/actor/armures.hbs new file mode 100644 index 00000000..78edda87 --- /dev/null +++ b/templates/actor/armures.hbs @@ -0,0 +1,25 @@ +{{#if armures}} +{{#each armures as |armure|}} +
  • + + + {{#if armure.system.equipe}}{{else}}{{/if}} + {{armure.name}} + {{#if armure.system.malus}} + ({{armure.system.malus}}) + {{/if}} + + +
  • +{{/each}} +{{/if}} +{{#if (or options.isGM (gt system.attributs.protection.value 0))}} +
  • + + +
  • +{{/if}} +
  • + + +
  • diff --git a/templates/actor/carac-derivee.html b/templates/actor/carac-derivee.html index 13b53c43..bfe92d70 100644 --- a/templates/actor/carac-derivee.html +++ b/templates/actor/carac-derivee.html @@ -5,15 +5,23 @@
    -
  • - - + {{>"systems/foundryvtt-reve-de-dragon/templates/actor/armures.hbs"}} +
    +
  • + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +
  • + + +

  • @@ -45,40 +59,18 @@ -
  • +
  • -
  • +
  • -
  • - -
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - +