From e208adfc369fb8fc46a3ef3c9e5dc7dff8a474a6 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Fri, 10 Jul 2026 23:36:07 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20bouton=20=C3=89preuve=20dans=20le=20cha?= =?UTF-8?q?t=20(remplace=20Sort)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le bouton Sort était peu utile (personnage pas toujours défini). Remplacé par Épreuve 🎲 qui ouvre le dialogue de jet standard, accessible depuis le chat pour tous. --- fvtt-hamalron.mjs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/fvtt-hamalron.mjs b/fvtt-hamalron.mjs index acacf1c..fda3618 100644 --- a/fvtt-hamalron.mjs +++ b/fvtt-hamalron.mjs @@ -237,14 +237,9 @@ function addChatTools() { game.system.api.openActionComplexe() }) } - addBtn("fas fa-wand-magic-sparkles", "Sort", "Lancer un sort", () => { + addBtn("fas fa-dice", "Épreuve", "Lancer une épreuve standard", () => { const actor = game.user?.character || game.actors?.find(a => a.type === "personnage") - if (actor) { - const spell = actor.items.find(i => i.type === "sortilege") - if (spell) { - import("./module/applications/sortilege-casting.mjs").then(m => m.default.prompt(spell, actor)) - } - } + if (actor) actor.system?.roll?.("stat", { name: "Épreuve", value: 0 }) }) controls.parentNode.insertBefore(tools, controls)