Fix HP location and damages

This commit is contained in:
2023-10-23 16:38:34 +02:00
parent e19e6df228
commit 1f8275e153
59 changed files with 191 additions and 157 deletions

View File

@@ -29,7 +29,7 @@
<div class="tab main" data-group="primary" data-tab="main">
<div class="flexrow">
<ul class="stat-list alternate-list item-list">
<ul class="stat-list alternate-list item-list stat-column-size">
{{#each system.attributes as |attr key|}}
<li class="item stat flexrow list-item list-item-shadow">
<label class="item-field-label-medium">{{attr.label}}</label>
@@ -38,7 +38,7 @@
</li>
</ul>
<ul class="stat-list alternate-list item-list">
<ul class="stat-list alternate-list item-list derivated-column-size">
{{#each system.derivated as |deriv key|}}
<li class="item stat flexrow list-item list-item-shadow">
<label class="item-field-label-medium">{{deriv.label}}</label>
@@ -60,6 +60,19 @@
<label class="item-field-label-short">&nbsp;/&nbsp;{{second.max}}</label>
{{/if}}
<input type="text" class="item-field-label-short padd-right" name="system.secondary.{{key}}.bonus" value="{{second.bonus}}" data-dtype="Number"/>
{{#if (eq key "hp")}}
<ul class="stat-list alternate-list item-list hplocation-column">
{{#each @root.system.hitlocations as |loc key|}}
<li class="item stat flexrow list-item list-item-shadow">
<label class="item-field-label-short">{{loc.label}}</label>
<input type="text" class="item-field-label-short padd-right" name="system.hitlocations.{{key}}.value" value="{{loc.value}}" data-dtype="Number"/>
<label class="item-field-label-short">&nbsp;/&nbsp;{{loc.max}}</label>
</li>
{{/each}}
</ul>
{{/if}}
{{/each}}
</li>
<li class="item stat flexrow list-item list-item-shadow">