2021-01-04 01:11:05 +01:00
|
|
|
{{!-- ======================================================================== --}}
|
|
|
|
{{!-- INLINE PARTIAL DEFINITIONS --}}
|
|
|
|
{{!-- ======================================================================== --}}
|
|
|
|
|
|
|
|
{{!--
|
|
|
|
!-- Render a combat value.
|
|
|
|
!--
|
|
|
|
!-- @param combat-value-key: The key of the combat value
|
|
|
|
!-- @param combat-value-data: The data for the attribute
|
2021-02-16 23:23:18 +01:00
|
|
|
!-- @param combat-value-label: The label for the attribute
|
2021-01-04 01:11:05 +01:00
|
|
|
--}}
|
|
|
|
|
|
|
|
{{#*inline "combat-value"}}
|
|
|
|
<div class="combat-value-with-formula">
|
2021-02-16 23:23:18 +01:00
|
|
|
<div class="combat-value {{combat-value-key}}" title="{{combat-value-label}}: {{combat-value-data.tooltip}}"><span
|
|
|
|
class="combat-value-total">{{combat-value-data.total}}</span>
|
2021-01-04 01:11:05 +01:00
|
|
|
</div>
|
2021-02-16 23:23:18 +01:00
|
|
|
<div class="combat-value-formula flexrow"><span class="combat-value-base"
|
|
|
|
title="{{combat-value-label}} {{localize 'DS4.TooltipBaseValue'}}">{{combat-value-data.base}}</span><span>+</span><input
|
2021-01-19 03:31:40 +01:00
|
|
|
type="number" name="data.combatValues.{{combat-value-key}}.mod" value='{{combat-value-data.mod}}'
|
2021-02-16 23:23:18 +01:00
|
|
|
data-dtype="Number" title="{{combat-value-label}} {{localize 'DS4.TooltipModifier'}}" />
|
2021-01-04 01:11:05 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{!-- ======================================================================== --}}
|
|
|
|
|
|
|
|
<div class="combat-values flexrow flex-between">
|
2021-01-24 17:47:47 +01:00
|
|
|
{{#each config.i18n.combatValues as |combat-value-label combat-value-key|}}
|
2021-01-04 01:11:05 +01:00
|
|
|
{{> combat-value combat-value-key=combat-value-key combat-value-data=(lookup ../data.combatValues
|
2021-02-16 23:23:18 +01:00
|
|
|
combat-value-key) combat-value-label=combat-value-label}}
|
2021-01-04 01:11:05 +01:00
|
|
|
{{/each}}
|
2021-02-16 23:23:18 +01:00
|
|
|
</div>
|