Use b&w duality and only show roll img if there are usable actions

This commit is contained in:
Carlos Fernandez 2025-09-30 21:51:25 -04:00
parent e3eb67ac9a
commit 98345a21db
4 changed files with 7 additions and 5 deletions

View file

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Before After
Before After

View file

@ -26,7 +26,7 @@
&:not(.single-img) {
.inventory-item-header:hover {
.img-portait {
.img-portait:has(.roll-img) {
.roll-img {
opacity: 1;
}

View file

@ -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}}>
<img src="{{item.img}}" class="item-img {{#if isActor}}actor-img{{/if}}" />
{{#if @root.isNPC}}
<img class="roll-img" src="systems/daggerheart/assets/icons/dice/default/d20.svg" alt="d20">
{{else}}
<img class="roll-img" src="systems/daggerheart/assets/icons/dice/duality/Daggerheart Foundry_g506.png" alt="2d12">
{{#if (or item.system.actionsList.size item.system.actionsList.length item.actionType)}}
{{#if @root.isNPC}}
<img class="roll-img d20" src="systems/daggerheart/assets/icons/dice/default/d20.svg" alt="d20">
{{else}}
<img class="roll-img duality" src="systems/daggerheart/assets/icons/dice/duality/DualityBW.png" alt="2d12">
{{/if}}
{{/if}}
</div>