From bb38705d520e5df54411f917e3bb2cdf2ca0be8b Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Wed, 16 Aug 2023 10:51:19 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20arme=20=C3=A0=20distance=20+=20modificate?= =?UTF-8?q?ur=20de=20vigueur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hawkmoon-actor.js | 2 +- system.json | 3 +-- templates/actor-sheet.html | 4 ++-- templates/roll-dialog-generic.html | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/hawkmoon-actor.js b/modules/hawkmoon-actor.js index 6b7514b..8e21671 100644 --- a/modules/hawkmoon-actor.js +++ b/modules/hawkmoon-actor.js @@ -226,7 +226,7 @@ export class HawkmoonActor extends Actor { if (this.type == 'personnage') { let talentBonus = this.getVigueurBonus() - let vigueur = Math.floor((this.system.attributs.pui.value + this.system.attributs.tre.value) / 2) + talentBonus + let vigueur = Math.floor((this.system.attributs.pui.value + this.system.attributs.tre.value) / 2) + talentBonus + this.system.sante.vigueurmodifier if (vigueur != this.system.sante.vigueur) { this.update({ 'system.sante.vigueur': vigueur }) } diff --git a/system.json b/system.json index 7a89123..5243521 100644 --- a/system.json +++ b/system.json @@ -156,7 +156,6 @@ "background": "systems/fvtt-hawkmoon-cyd/assets/ui/fond_hawkmoon.webp", "compatibility": { "minimum": "10", - "maximum": "11", - "verified": "11" + "maximum": "11" } } \ No newline at end of file diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 5b99663..f7c312e 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -115,8 +115,8 @@ {{#if isGM}}
Modificateur de Vigueur - +
{{/if}} diff --git a/templates/roll-dialog-generic.html b/templates/roll-dialog-generic.html index 4609032..46212a7 100644 --- a/templates/roll-dialog-generic.html +++ b/templates/roll-dialog-generic.html @@ -159,7 +159,7 @@ - {{#if armeDefense}} + {{#if (or armeDefense arme.system.isDistance)}} {{#if arme.system.isDistance}}
@@ -168,7 +168,7 @@ {{#select distanceTir}} - + {{/select}}