From a4c07715a01f71b145cdd00f7276e366b86f2bfc Mon Sep 17 00:00:00 2001 From: rwanoux Date: Fri, 22 Nov 2024 10:53:30 +0100 Subject: [PATCH] ajout des valeurs de combatStatus en config et sur perso --- module/system/config.mjs | 5 + .../actor/character/character-combat.hbs | 138 ++++++++++-------- 2 files changed, 86 insertions(+), 57 deletions(-) diff --git a/module/system/config.mjs b/module/system/config.mjs index 0edf843..f47e558 100644 --- a/module/system/config.mjs +++ b/module/system/config.mjs @@ -252,4 +252,9 @@ VERMINE.damageTypes = [ "feu", "balle" ]; +VERMINE.combatStatus = { + offensif: 5, + actif: 7, + passif: 9 +} diff --git a/templates/actor/character/character-combat.hbs b/templates/actor/character/character-combat.hbs index 1170c99..e603d6a 100644 --- a/templates/actor/character/character-combat.hbs +++ b/templates/actor/character/character-combat.hbs @@ -1,4 +1,19 @@ -
+
+

situation de combat par défaut

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

@@ -78,85 +93,94 @@ {{/repeat}}

-
-

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

- + + - - -

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

    {{#each effects as |section sid|}}