Fixed so that formula construction specific to DAMAGE is now only applied to damage.main rather than by applyTo=hitPoints

This commit is contained in:
WBHarry 2026-07-18 17:14:55 +02:00
parent 88754c5a80
commit 3562ba649f
8 changed files with 56 additions and 62 deletions

View file

@ -43,25 +43,23 @@
{{/with}}
{{/if}}
<div class="flexcol">
{{#unless (empty @root.resourceFormulas)}}
<div class="section-header">{{localize "Resource Drain"}}</div>
{{/unless}}
{{#unless (empty @root.resourceFormulas)}}
<div class="section-header">{{localize "Resource Drain"}}</div>
{{/unless}}
{{#each @root.resourceFormulas}}
<div class="damage-formula">
<span class="damage-resource"><b>{{localize "DAGGERHEART.GENERAL.formula"}}:</b> {{roll.formula}}</span>
<span class="damage-details">
{{#with (lookup @root.config.GENERAL.healingTypes applyTo)}}
{{localize label}}
{{/with}}
</span>
</div>
<div class="bonuses form-group flexrow">
<input type="text" value="{{extraFormula}}" name={{concat "resourceFormulas." @key ".extraFormula"}} placeholder="{{localize "DAGGERHEART.GENERAL.situationalBonus"}}">
</div>
{{/each}}
</div>
{{#each @root.resourceFormulas}}
<div class="damage-formula">
<span class="damage-resource"><b>{{localize "DAGGERHEART.GENERAL.formula"}}:</b> {{roll.formula}}</span>
<span class="damage-details">
{{#with (lookup @root.config.GENERAL.healingTypes applyTo)}}
{{localize label}}
{{/with}}
</span>
</div>
<div class="bonuses form-group flexrow">
<input type="text" value="{{extraFormula}}" name={{concat "resourceFormulas." @key ".extraFormula"}} placeholder="{{localize "DAGGERHEART.GENERAL.situationalBonus"}}">
</div>
{{/each}}
{{#if damageOptions.groupAttack}}
<fieldset class="group-attack-container">

View file

@ -23,7 +23,7 @@
</div>
{{/if}}
<div class="tag">
<span>{{{damageFormula attack}}} {{{damageSymbols attack.damage.parts}}}</span>
<span>{{{damageFormula attack}}} {{{damageSymbols attack.damage.main}}}</span>
</div>
</div>
{{#if description}}

View file

@ -23,7 +23,7 @@
{{/with}}
</div>
<div class="tag">
<span>{{{damageFormula item.system.attack}}} {{{damageSymbols item.system.attack.damage.parts}}}</span>
<span>{{{damageFormula item.system.attack}}} {{{damageSymbols item.system.attack.damage.main}}}</span>
</div>
</div>
{{#if description}}