32 lines
1.4 KiB
Handlebars
32 lines
1.4 KiB
Handlebars
{{!--
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
SPDX-License-Identifier: MIT
|
|
--}}
|
|
|
|
{{!--
|
|
!-- Render a combat value.
|
|
!--
|
|
!-- @param combat-value-key: The key of the combat value
|
|
!-- @param combat-value-data: The data for the combat value
|
|
!-- @param combat-value-title: The title for the combat value
|
|
!-- @param combat-value-label: The label for the combat value (possibly an abbreviation)
|
|
!-- @param actor-id: The id of the actor the core value belongs to
|
|
--}}
|
|
|
|
<div class="ds4-combat-value">
|
|
<div class="ds4-combat-value__value ds4-combat-value__value--{{combat-value-key}}"
|
|
title="{{combat-value-title}}: {{combat-value-data.tooltip}}">
|
|
{{combat-value-data.total}}
|
|
</div>
|
|
<span title="{{combat-value-title}}" class="ds4-combat-value__label">{{combat-value-label}}</span>
|
|
<div class="ds4-combat-value__formula">
|
|
<span class="ds4-combat-value__formula-base"
|
|
title="{{combat-value-title}} {{localize 'DS4.TooltipBaseValue'}}">{{combat-value-data.base}}</span>
|
|
<span>+</span>
|
|
<input class="ds4-combat-value__formula-modifier" type="number"
|
|
id="system.combatValues.{{combat-value-key}}.mod-{{actor-id}}"
|
|
name="system.combatValues.{{combat-value-key}}.mod" value='{{combat-value-data.mod}}' data-dtype="Number"
|
|
title="{{combat-value-title}} {{localize 'DS4.TooltipModifier'}}" />
|
|
</div>
|
|
</div>
|