Added BP calculation and tooltip breakdown of BP sources

This commit is contained in:
WBHarry 2025-11-28 18:53:34 +01:00
parent 630ba5ab7d
commit 51a0fb82eb
12 changed files with 251 additions and 12 deletions

View file

@ -64,6 +64,8 @@
{{/if}}
</strong>
<div class="encounter-battlepoints" data-tooltip="#battlepoints#" data-combat-id="{{combat.id}}" data-bp-current="{{battlepoints.current}}" data-bp-max="{{battlepoints.max}}" data-nr-characters="{{characters.length}}">{{battlepoints.current}}/{{battlepoints.max}} BP</div>
{{!-- Combat Controls --}}
<div class="inner-controls">
{{#if hasCombat}}

View file

@ -0,0 +1,15 @@
<div class="daggerheart dh-style tooltip">
<div class="battlepoint-categories-container">
{{#each categories as |category key|}}
{{#each category as |grouping index|}}
<div class="battlepoint-grouping-container">
{{#if grouping.nr}}
<label>{{key}} BP - {{concat (localize grouping.description) ' ' '('grouping.nr 'x)'}}</label>
{{else}}
<label class="unselected-grouping">{{key}}BP - {{localize grouping.description}}</label>
{{/if}}
</div>
{{/each}}
{{/each}}
</div>
</div>