From 00b3b7f9b36e86095d3edd2ff545acd8c0db7a51 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 14 Oct 2022 00:45:53 +0200 Subject: [PATCH] Fix: Affichage ajustement encaissement Pour les encaissements hors combat, rappel de l'ajustement d'encaissement choisi --- module/rdd-roll-encaisser.js | 1 + templates/dialog-validation-encaissement.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/module/rdd-roll-encaisser.js b/module/rdd-roll-encaisser.js index 109e6fbf..b791a5f2 100644 --- a/module/rdd-roll-encaisser.js +++ b/module/rdd-roll-encaisser.js @@ -51,6 +51,7 @@ export class RdDEncaisser extends Dialog { this.actor.encaisserDommages({ dmg: { total: Number(this.modifier), + ajustement: Number(this.modifier), encaisserSpecial: this.encaisserSpecial, loc: { result: 0, label: "" }, mortalite: mortalite diff --git a/templates/dialog-validation-encaissement.html b/templates/dialog-validation-encaissement.html index a0c9a10f..380c1329 100644 --- a/templates/dialog-validation-encaissement.html +++ b/templates/dialog-validation-encaissement.html @@ -19,6 +19,9 @@
Pénétration: -{{rollData.dmg.penetration}}
{{/if}}
+ {{#if encaissement.dmg.total}} +
+dom encaissement: {{numberFormat rollData.dmg.total decimals=0 sign=true}}
+ {{/if}} {{#if rollData.dmg.dmgArme}}
+dom arme: {{numberFormat rollData.dmg.dmgArme decimals=0 sign=true}}
{{/if}}