ds4/templates/sheets/actor/components/combat-value.hbs

33 lines
1.4 KiB
Handlebars
Raw Permalink Normal View History

2021-06-26 22:02:00 +02:00
{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-License-Identifier: MIT
--}}
2021-04-13 22:48:37 +02:00
{{!--
!-- 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
2021-04-13 22:48:37 +02:00
--}}
<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}}">
2021-04-13 22:48:37 +02:00
{{combat-value-data.total}}
</div>
<span title="{{combat-value-title}}" class="ds4-combat-value__label">{{combat-value-label}}</span>
2021-04-13 22:48:37 +02:00
<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>
2021-04-13 22:48:37 +02:00
<span>+</span>
<input class="ds4-combat-value__formula-modifier" type="number"
2022-11-21 03:00:46 +01:00
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'}}" />
2021-04-13 22:48:37 +02:00
</div>
</div>