From 8479fdda8a0e2d195e9b6679ba781e0090fa97cb Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 7 Feb 2025 21:50:10 +0100 Subject: [PATCH] =?UTF-8?q?Affichage=20du=20co=C3=BBt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - affichage en erreur des monnaies sans valeur (dites "de glipzouk") - gestion du prix parfois non modifiable --- module/applications/sheets/monnaie-sheet.mjs | 9 ++------- .../sheets/item/common/template-inventaire.hbs | 13 ++++++++++++- templates/sheets/item/monnaie.hbs | 1 - 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/module/applications/sheets/monnaie-sheet.mjs b/module/applications/sheets/monnaie-sheet.mjs index c8c487ab..efe3b12c 100644 --- a/module/applications/sheets/monnaie-sheet.mjs +++ b/module/applications/sheets/monnaie-sheet.mjs @@ -13,15 +13,10 @@ export default class RdDMonnaieSheet extends RdDItemBaseSheet { RdDItemBaseSheet.DEFAULT_OPTIONS, { classes: ["fvtt-rdd", "item", "monnaie"], - position: { - width: 400, - }, - window: { - contentClasses: ["monnaie-content"], - } + position: { width: 400 }, + window: { contentClasses: ["monnaie-content"] } }) - /** @override */ static PARTS = { main: { diff --git a/templates/sheets/item/common/template-inventaire.hbs b/templates/sheets/item/common/template-inventaire.hbs index 00883e96..116a02c1 100644 --- a/templates/sheets/item/common/template-inventaire.hbs +++ b/templates/sheets/item/common/template-inventaire.hbs @@ -2,5 +2,16 @@ {{formField systemFields.qualite value=system.qualite}} {{formField systemFields.encombrement value=system.encombrement}} {{formField systemFields.quantite value=system.quantite}} - {{formField systemFields.cout value=system.cout}} + +
+ +
+ +
+
diff --git a/templates/sheets/item/monnaie.hbs b/templates/sheets/item/monnaie.hbs index 026619ee..ac7de3a4 100644 --- a/templates/sheets/item/monnaie.hbs +++ b/templates/sheets/item/monnaie.hbs @@ -1,6 +1,5 @@
{{> "systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/header.hbs"}} - {{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-inventaire.hbs"}} {{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-description.hbs"}}