ds4/templates/sheets/actor/components/actor-progression.hbs

50 lines
2.6 KiB
Handlebars
Raw Permalink Normal View History

2021-07-12 00:12:59 +02:00
{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-FileCopyrightText: 2021 Oliver Rümpelein
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
SPDX-License-Identifier: MIT
--}}
<div class="ds4-actor-progression">
<div class="ds4-actor-progression__entry">
2022-11-21 03:00:46 +01:00
<h2 class="ds4-actor-progression__label"><label for="system.combatValues.hitPoints.value-{{data._id}}"
2021-07-12 00:12:59 +02:00
title="{{localize 'DS4.CombatValuesHitPointsCurrent'}}">{{localize
"DS4.CombatValuesHitPointsCurrentAbbr"}}</label>
</h2>
2022-11-21 03:00:46 +01:00
<input class="ds4-actor-progression__input" type="number" name="system.combatValues.hitPoints.value"
id="system.combatValues.hitPoints.value-{{data._id}}" value="{{data.system.combatValues.hitPoints.value}}"
2021-07-12 00:12:59 +02:00
data-dtype="Number" />
</div>
{{#if (eq data.type "character")}}
{{#if settings.showSlayerPoints}}
<div class="ds4-actor-progression__entry">
2022-11-21 03:00:46 +01:00
<h2 class="ds4-actor-progression__label"><label for="system.slayersPoints.value-{{data._id}}"
2021-07-12 00:12:59 +02:00
title="{{localize 'DS4.CharacterSlayerPoints'}}">{{localize "DS4.CharacterSlayerPointsAbbr"}}</label>
</h2>
<input class="ds4-actor-progression__input ds4-actor-progression__input--slayer-points" type="number"
2022-11-21 03:00:46 +01:00
max="{{data.system.slayerPoints.max}}" min="0" step="1" name="system.slayerPoints.value"
id="system.slayersPoints.value-{{data._id}}" value="{{data.system.slayerPoints.value}}"
data-dtype="Number" />
2021-07-12 00:12:59 +02:00
</div>
{{/if}}
<div class="ds4-actor-progression__entry">
2022-11-21 03:00:46 +01:00
<h2 class="ds4-actor-progression__label"><label for="system.progression.level-{{data._id}}"
2021-07-12 00:12:59 +02:00
title="{{localize 'DS4.CharacterProgressionLevel'}}">{{localize
"DS4.CharacterProgressionLevelAbbr"}}</label>
</h2>
2022-11-21 03:00:46 +01:00
<input class="ds4-actor-progression__input" type="number" min="0" name="system.progression.level"
id="system.progression.level-{{data._id}}" value="{{data.system.progression.level}}" data-dtype="Number" />
2021-07-12 00:12:59 +02:00
</div>
<div class="ds4-actor-progression__entry">
2022-11-21 03:00:46 +01:00
<h2 class="ds4-actor-progression__label"><label for="system.progression.experiencePoints-{{data._id}}"
2021-07-12 00:12:59 +02:00
title="{{localize 'DS4.CharacterProgressionExperiencePoints'}}">{{localize
"DS4.CharacterProgressionExperiencePointsAbbr"}}</label>
</h2>
2022-11-21 03:00:46 +01:00
<input class="ds4-actor-progression__input" type="number" min="0" name="system.progression.experiencePoints"
id="system.progression.experiencePoints-{{data._id}}" value="{{data.system.progression.experiencePoints}}"
2021-07-12 00:12:59 +02:00
data-dtype="Number" />
</div>
{{/if}}
</div>