From b478fd7b549678afde59c95e39e1593cb2c9e382 Mon Sep 17 00:00:00 2001 From: rwanoux Date: Fri, 22 Nov 2024 18:17:34 +0100 Subject: [PATCH] ajout du statut de combat dans fiche perso --- .../actor/character/character-combat.hbs | 267 ++++++++++-------- 1 file changed, 153 insertions(+), 114 deletions(-) diff --git a/templates/actor/character/character-combat.hbs b/templates/actor/character/character-combat.hbs index e603d6a..6a6e899 100644 --- a/templates/actor/character/character-combat.hbs +++ b/templates/actor/character/character-combat.hbs @@ -1,19 +1,25 @@
-

situation de combat par défaut

-
- {{#each config.combatStatus as |dif label|}} -
- - +
+

situation de combat par défaut

+
+ {{#each config.combatStatus as |dif label|}} +
+ + +
+ {{/each}}
- {{/each}}
-
+

@@ -25,31 +31,34 @@
{{#repeat 4 1 "row"}} -
- {{#repeat @row @root.SCIndex "case"}} -
+ {{#repeat @row @root.SCIndex "case"}} +
- {{#iflteq @row @root.system.attributes.self_control.max }} - - {{/iflteq}} + " + /> + {{/iflteq}} +
+ {{setVar "SCIndex" (math_add @root.SCIndex 1)}} + {{/repeat}}
- {{setVar "SCIndex" (math_add @root.SCIndex 1)}} - {{/repeat}} -
{{/repeat}}

@@ -65,60 +74,65 @@
{{#repeat 4 1 "row"}} -
- {{#repeat @row @root.EffIndex "case"}} -
+ {{#repeat @row @root.EffIndex "case"}} +
- {{#iflteq @row @root.system.attributes.effort.max }} - - {{/iflteq}} + " + /> + {{/iflteq}} +
+ {{setVar "EffIndex" (math_add @root.EffIndex 1)}} + {{/repeat}}
- {{setVar "EffIndex" (math_add @root.EffIndex 1)}} - {{/repeat}} -
{{/repeat}}
-
+

{{ localize "VERMINE.wounds.name"}}

  • {{ localize - 'VERMINE.wounds.light'}} ({{ + 'VERMINE.wounds.light'}} ({{ system.minorWound.threshold }})
    {{#repeat system.minorWound.max 1 "minorwoundmax"}} -
    - -
    + {{#ife @minorwoundmax @root.system.minorWound.value }} + checked="true" + {{/ife}} + /> +
    {{/repeat}}
@@ -128,24 +142,27 @@ system.majorWound.threshold }})
{{#repeat system.majorWound.max 1 "majourwoundmax"}} -
- + {{#ife @majourwoundmax @root.system.majorWound.value }} + checked="true" + {{/ife}} + /> -
+
{{/repeat}}
@@ -156,23 +173,25 @@ system.deadlyWound.threshold }})
{{#repeat system.deadlyWound.max 1 "deadlywoundmax"}} -
- -
+ {{#ife @deadlywoundmax @root.system.deadlyWound.value }} + checked="true" + {{/ife}} + /> +
{{/repeat}}
@@ -184,51 +203,71 @@

{{ localize "UI.effects.name"}}

    {{#each effects as |section sid|}} -
  1. -

    {{#if (eq section.type +

  2. +

    {{#if (eq section.type 'temporary')}} - {{localize "UI.effects.temporary" }} - {{else if (eq section.type 'passive')}} - {{localize "UI.effects.passive" }} - {{else if (eq section.type 'inactive')}} - {{localize "UI.effects.inactive" }} - {{/if}} -

    -
    {{localize 'UI.source'}}
    -
    {{localize 'UI.duration'}}
    - -
  3. - -
      - {{#each section.effects as |effect|}} -
    1. - -
      {{effect.sourceName}}
      -
      {{effect.duration.label}}
      + {{localize "UI.effects.temporary" }} + {{else if (eq section.type 'passive')}} + {{localize "UI.effects.passive" }} + {{else if (eq section.type 'inactive')}} + {{localize "UI.effects.inactive" }} + {{/if}} +

      +
      {{localize 'UI.source'}}
      +
      {{localize 'UI.duration'}}
    2. - {{/each}} -
    + +
      + {{#each section.effects as |effect|}} +
    1. + +
      {{effect.sourceName}}
      +
      {{effect.duration.label}}
      + +
    2. + {{/each}} +
    {{/each}} -
+ \ No newline at end of file