From 98345a21db65049d27489ef1a6bc0fd2813d68e2 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Tue, 30 Sep 2025 21:51:25 -0400 Subject: [PATCH] Use b&w duality and only show roll img if there are usable actions --- .../{DualitySVG/DualityPNG.png => DualityBW.png} | Bin .../dice/duality/{DualitySVG => }/DualitySVG.svg | 0 styles/less/global/inventory-item.less | 2 +- .../sheets/global/partials/inventory-item-V2.hbs | 10 ++++++---- 4 files changed, 7 insertions(+), 5 deletions(-) rename assets/icons/dice/duality/{DualitySVG/DualityPNG.png => DualityBW.png} (100%) rename assets/icons/dice/duality/{DualitySVG => }/DualitySVG.svg (100%) diff --git a/assets/icons/dice/duality/DualitySVG/DualityPNG.png b/assets/icons/dice/duality/DualityBW.png similarity index 100% rename from assets/icons/dice/duality/DualitySVG/DualityPNG.png rename to assets/icons/dice/duality/DualityBW.png diff --git a/assets/icons/dice/duality/DualitySVG/DualitySVG.svg b/assets/icons/dice/duality/DualitySVG.svg similarity index 100% rename from assets/icons/dice/duality/DualitySVG/DualitySVG.svg rename to assets/icons/dice/duality/DualitySVG.svg diff --git a/styles/less/global/inventory-item.less b/styles/less/global/inventory-item.less index 297aaac5..fc79cdc4 100644 --- a/styles/less/global/inventory-item.less +++ b/styles/less/global/inventory-item.less @@ -26,7 +26,7 @@ &:not(.single-img) { .inventory-item-header:hover { - .img-portait { + .img-portait:has(.roll-img) { .roll-img { opacity: 1; } diff --git a/templates/sheets/global/partials/inventory-item-V2.hbs b/templates/sheets/global/partials/inventory-item-V2.hbs index 5fc75258..804af20e 100644 --- a/templates/sheets/global/partials/inventory-item-V2.hbs +++ b/templates/sheets/global/partials/inventory-item-V2.hbs @@ -23,10 +23,12 @@ Parameters: (hasProperty item "toChat" ) "toChat" "editDoc" ) }}' {{#unless hideTooltip}} {{#if (eq type 'attack' )}} data-tooltip="#attack#{{item.actor.uuid}}" {{else}} data-tooltip="#item#{{item.uuid}}" {{/if}} {{/unless}}> - {{#if @root.isNPC}} - d20 - {{else}} - 2d12 + {{#if (or item.system.actionsList.size item.system.actionsList.length item.actionType)}} + {{#if @root.isNPC}} + d20 + {{else}} + 2d12 + {{/if}} {{/if}}