From 3fc10ad669d0adee1c7c502131099d415ee7557c Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Wed, 13 May 2026 23:07:22 +0200 Subject: [PATCH] Derniers fixs --- system/scripts/actors/base-character-sheet.js | 4 ++-- system/templates/items/weapon/weapon-entry.html | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/system/scripts/actors/base-character-sheet.js b/system/scripts/actors/base-character-sheet.js index aa41773..a112e92 100644 --- a/system/scripts/actors/base-character-sheet.js +++ b/system/scripts/actors/base-character-sheet.js @@ -685,9 +685,9 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e { const data = { equipped: tmpItem.system.equipped, }; - // Only weapons + // For weapons: sync readied with equipped so both toggle together if (tmpItem.system.readied !== undefined) { - data.readied = tmpItem.system.readied; + data.readied = type === "equipped" ? tmpItem.system.equipped : tmpItem.system.readied; } // Update the Item: we need to manually notify the "Gm Monitor" as the Actor himself is not updated diff --git a/system/templates/items/weapon/weapon-entry.html b/system/templates/items/weapon/weapon-entry.html index 5aa9c08..098a2fe 100644 --- a/system/templates/items/weapon/weapon-entry.html +++ b/system/templates/items/weapon/weapon-entry.html @@ -8,14 +8,12 @@ {{weapon.system.deadliness}} {{#if editable}} +
  • {{/if}}