Merge branch 'add-hp-to-creature-sheet' into 'master'

Add HP to creature sheet

See merge request dungeonslayers/ds4!79
This commit is contained in:
Johannes Loher 2021-02-19 18:11:36 +01:00
commit 1e871b6e52
2 changed files with 9 additions and 2 deletions

View file

@ -3,7 +3,12 @@
<header class="sheet-header"> <header class="sheet-header">
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100" /> <img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100" />
<div class="header-fields flexrow"> <div class="header-fields flexrow">
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name" /></h1> <h1 class="charname">
<label for="actor.name" class="hidden">Name</label>
<input name="name" type="text" id="actor.name" value="{{actor.name}}" placeholder="Name" />
</h1>
{{> systems/ds4/templates/actor/partials/character-progression.hbs}}
<div class="flexrow basic-properties"> <div class="flexrow basic-properties">
<div class="basic-property"> <div class="basic-property">
<label>{{config.i18n.creatureBaseInfo.creatureType}}</label> <label>{{config.i18n.creatureBaseInfo.creatureType}}</label>

View file

@ -7,6 +7,7 @@
<input class="progression-value" type="number" name="data.combatValues.hitPoints.value" <input class="progression-value" type="number" name="data.combatValues.hitPoints.value"
id="data.combatValues.hitPoints.value" value="{{data.combatValues.hitPoints.value}}" data-dtype="Number" /> id="data.combatValues.hitPoints.value" value="{{data.combatValues.hitPoints.value}}" data-dtype="Number" />
</div> </div>
{{#if (eq actor.type "character")}}
<div class="progression-entry"> <div class="progression-entry">
<h2 class="progression-label"><label for="data.progression.level" <h2 class="progression-label"><label for="data.progression.level"
title="{{localize 'DS4.CharacterProgressionLevel'}}">{{localize title="{{localize 'DS4.CharacterProgressionLevel'}}">{{localize
@ -23,4 +24,5 @@
<input class="progression-value" type="number" name="data.progression.experiencePoints" <input class="progression-value" type="number" name="data.progression.experiencePoints"
id="data.progression.experiencePoints" value="{{data.progression.experiencePoints}}" data-dtype="Number" /> id="data.progression.experiencePoints" value="{{data.progression.experiencePoints}}" data-dtype="Number" />
</div> </div>
{{/if}}
</div> </div>