From aa02ab878d832e2875d4c66117495b5a0761fd2c Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 2 Feb 2023 23:59:41 +0100 Subject: [PATCH] Ajout tarot et autres --- modules/malefices-roll-dialog.js | 5 ++++- modules/malefices-utility.js | 3 ++- system.json | 4 ++-- templates/actors/actor-sheet.hbs | 7 +++++++ templates/dialogs/roll-dialog-generic.hbs | 11 +++++++++++ 5 files changed, 26 insertions(+), 4 deletions(-) diff --git a/modules/malefices-roll-dialog.js b/modules/malefices-roll-dialog.js index 52347ca..49d38b5 100644 --- a/modules/malefices-roll-dialog.js +++ b/modules/malefices-roll-dialog.js @@ -67,6 +67,9 @@ export class MaleficesRollDialog extends Dialog { html.find('#bonusMalusDef').change((event) => { this.rollData.bonusMalusDef = Number(event.currentTarget.value) }) - + html.find('#bonusMalusPortee').change((event) => { + this.rollData.bonusMalusPortee = Number(event.currentTarget.value) + }) + } } \ No newline at end of file diff --git a/modules/malefices-utility.js b/modules/malefices-utility.js index a15e790..0c652a1 100644 --- a/modules/malefices-utility.js +++ b/modules/malefices-utility.js @@ -469,7 +469,7 @@ export class MaleficesUtility { // Build the dice formula let diceFormula = "1d20" - rollData.target = rollData.attr.value + rollData.bonusMalusPerso + rollData.bonusMalusSituation + rollData.bonusMalusDef + rollData.target = rollData.attr.value + rollData.bonusMalusPerso + rollData.bonusMalusSituation + rollData.bonusMalusDef + rollData.bonusMalusPortee if (rollData.attr.abbrev == "physique") { rollData.target += rollData.phyMalus } @@ -598,6 +598,7 @@ export class MaleficesUtility { bonusMalusPerso: 0, bonusMalusSituation: 0, bonusMalusDef: 0, + bonusMalusPortee: 0, rollMode: game.settings.get("core", "rollMode") } MaleficesUtility.updateWithTarget(rollData) diff --git a/system.json b/system.json index f95e8e1..b64afc1 100644 --- a/system.json +++ b/system.json @@ -55,7 +55,7 @@ ], "title": "Maléfices, le Jeu de Rôle", "url": "https://www.uberwald.me/gitea/public/fvtt-malefices", - "version": "10.0.5", - "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.5.zip", + "version": "10.0.6", + "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.6.zip", "background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp" } \ No newline at end of file diff --git a/templates/actors/actor-sheet.hbs b/templates/actors/actor-sheet.hbs index a1422c4..9064253 100644 --- a/templates/actors/actor-sheet.hbs +++ b/templates/actors/actor-sheet.hbs @@ -60,6 +60,13 @@ Points de Destin + + {{#if isGM}} +
  • + Fluide (MJ seulement) + +
  • + {{/if}} diff --git a/templates/dialogs/roll-dialog-generic.hbs b/templates/dialogs/roll-dialog-generic.hbs index 24d8e98..92737c5 100644 --- a/templates/dialogs/roll-dialog-generic.hbs +++ b/templates/dialogs/roll-dialog-generic.hbs @@ -64,6 +64,17 @@ {{/select}} + +
    + Pörtée : + +
    {{/if}}