Revert back to hp instead of hull/shld for compatibility

Left the dice separated out since hit die are controlled by character level.
This commit is contained in:
supervj 2021-05-05 01:37:44 -04:00
parent d0eae64241
commit 0607152f51
3 changed files with 33 additions and 25 deletions

View file

@ -41,11 +41,11 @@
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
<h1 class="attribute-name rollable">{{ localize "SW5E.HullPoints" }}</h1>
<div class="attribute-value multiple">
<input name="data.attributes.hull.value" type="text" value="{{data.attributes.hull.value}}"
data-dtype="Number" class="value-number" />
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
data-dtype="Number" placeholder="0" class="value-number" />
<span class="value-separator">/</span>
<input name="data.attributes.hull.max" type="text" value="{{data.attributes.hull.max}}"
data-dtype="Number" class="value-number" />
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
data-dtype="Number" placeholder="0" class="value-number" />
</div>
<footer class="attribute-footer hit-points">
<input name="data.attributes.hull.formula" class="hpformula" type="text"
@ -57,24 +57,26 @@
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
<h1 class="attribute-name rollable">{{ localize "SW5E.ShieldPoints" }}</h1>
<div class="attribute-value multiple">
<input name="data.attributes.shld.value" type="text" value="{{data.attributes.shld.value}}"
data-dtype="Number" placeholder="10" class="value-number" />
<input name="data.attributes.hp.temp" type="text" value="{{data.attributes.hp.temp}}"
data-dtype="Number" placeholder="0" class="value-number" />
<span class="value-separator">/</span>
<input name="data.attributes.shld.max" type="text" value="{{data.attributes.shld.max}}"
data-dtype="Number" placeholder="10" class="value-number" />
<input name="data.attributes.hp.tempmax" type="text" value="{{data.attributes.hp.tempmax}}"
data-dtype="Number" placeholder="0" class="value-number" />
</div>
<footer class="attribute-footer hit-points">
<input name="data.attributes.shld.formula" class="hpformula" type="text"
<input name="data.attributes.shld.Formula" class="hpformula" type="text"
placeholder="{{ localize 'SW5E.ShieldPointsFormula' }}" value="{{data.attributes.shld.formula}}" style="min-width: 150px;" />
</footer>
</section>
{{!-- SPEED / MOVEMENT TYPES --}}
<section style="box-sizing: border-box; width: 150px;">
<h1>{{ localize "SW5E.Movement" }}
<a class="config-button" data-action="movement" title="{{localize 'SW5E.MovementConfig'}}"><i class="fas fa-cog"></i></a>
</h1>
<div class="attribute-value">
<span>{{data.attributes.movement.fly}} {{data.attributes.movement.units}}</span>
<span>{{data.attributes.movement.space}} {{data.attributes.movement.units}}</span>
</div>
<footer class="attribute-footer" style="font-family: 'Russo One'; text-align: center;">
<span>Turning Speed: {{data.attributes.movement.turn}} {{data.attributes.movement.units}}</span>
@ -92,7 +94,7 @@
<button class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</button>
</nav>
{{!-- NPC Sheet Body --}}
{{!-- Starship Sheet Body --}}
<section class="sheet-body">
<section class="tab attributes core" data-group="primary" data-tab="attributes">
<section class="panel abilities">