mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Added the ability for effects to have stacks
This commit is contained in:
parent
4aab5d315a
commit
79057b0718
11 changed files with 187 additions and 18 deletions
|
|
@ -1,4 +1,15 @@
|
|||
<section class="tab{{#if tab.active}} active{{/if}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "DAGGERHEART.ACTIVEEFFECT.Config.stacking.title"}}</legend>
|
||||
|
||||
{{formGroup systemFields.stacking.fields.enabled value=source.system.stacking.enabled localize=true }}
|
||||
|
||||
<div class="two-columns even full-width">
|
||||
{{formGroup systemFields.stacking.fields.value value=source.system.stacking.value localize=true }}
|
||||
{{formGroup systemFields.stacking.fields.max value=source.system.stacking.max localize=true }}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "DAGGERHEART.ACTIVEEFFECT.Config.rangeDependence.title"}}</legend>
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
<a {{#if effect.condition}}disabled{{/if}}>
|
||||
<img src="{{effect.img}}" />
|
||||
</a>
|
||||
{{#if effect.system.stacking.enabled}}
|
||||
<span class="stacking-value">{{effect.system.stacking.value}}</span>
|
||||
{{/if}}
|
||||
{{#if effect.condition}}<i class="effect-locked fa-solid fa-lock"></i>{{/if}}
|
||||
</span>
|
||||
{{/each}}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if effect.system.duration.type}}
|
||||
|
||||
<div class="duration-container">
|
||||
<div class="duration-inner-container">
|
||||
<span>{{localize "EFFECT.DURATION.Label"}}:</span>
|
||||
|
|
@ -25,10 +24,39 @@
|
|||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if effect.system.stacking.enabled}}
|
||||
<div class="effect-stacks-outer-container">
|
||||
<div class="effect-stacks-title">{{localize "Stacks"}}</div>
|
||||
<div class="effect-stacks-container">
|
||||
<div class="effect-stacks-inner-container">
|
||||
<span class="effect-stack-title">{{localize "Current"}}</span>
|
||||
<span>{{effect.system.stacking.value}}</span>
|
||||
</div>
|
||||
{{#if effect.system.stacking.max}}
|
||||
<div class="effect-stacks-inner-container">
|
||||
<span class="effect-stack-title">{{localize "Max"}}</span>
|
||||
<span>{{effect.system.stacking.max}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#unless effect.isLockedCondition}}
|
||||
<p class="close-hint">
|
||||
<i class="fa-solid fa-computer-mouse"></i> {{localize "DAGGERHEART.UI.EffectsDisplay.removeThing" thing=(localize "DAGGERHEART.GENERAL.Effect.single")}}
|
||||
</p>
|
||||
<div class="close-hints">
|
||||
{{#if effect.system.stacking.enabled}}
|
||||
<p class="close-hint">
|
||||
<i class="fa-solid fa-computer-mouse"></i> {{localize "DAGGERHEART.UI.EffectsDisplay.increaseStacks"}}
|
||||
</p>
|
||||
<p class="close-hint">
|
||||
<i class="fa-solid fa-computer-mouse"></i> {{localize "DAGGERHEART.UI.EffectsDisplay.decreaseStacks"}}
|
||||
</p>
|
||||
{{else}}
|
||||
<p class="close-hint">
|
||||
<i class="fa-solid fa-computer-mouse"></i> {{localize "DAGGERHEART.UI.EffectsDisplay.removeThing" thing=(localize "DAGGERHEART.GENERAL.Effect.single")}}
|
||||
</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue