Fix powers

This commit is contained in:
2022-12-29 20:30:28 +01:00
parent 73e1b1f68a
commit a91eb3d7bd
16 changed files with 122 additions and 73 deletions

View File

@ -13,11 +13,11 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
</li>
<div class="tab details" data-group="primary" data-tab="details">
</div>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
</li>
</div>
</section>
</form>

View File

@ -13,17 +13,20 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<li class="flexrow"><label class="item-field-label-long">Has Roll ?</label>
<label class="item-field-label-medium"><input type="checkbox" name="system.hasroll" {{checked system.hasroll}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
</div>
<li class="flexrow"><label class="item-field-label-long">Has Roll ?</label>
<label class="item-field-label-medium"><input type="checkbox" name="system.hasroll" {{checked system.hasroll}}/></label>
</li>
{{#if system.hasroll}}
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{/if}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</div>
</section>
</form>

View File

@ -11,11 +11,11 @@
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
</div>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</div>
</section>
</form>

View File

@ -13,13 +13,13 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</div>
</section>
</form>

View File

@ -13,11 +13,21 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
</div>
{{> systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs}}
<li class="flexrow"><label class="item-field-label-long">Has Roll ?</label>
<label class="item-field-label-medium"><input type="checkbox" name="system.hasroll" {{checked system.hasroll}}/></label>
</li>
{{#if system.hasroll}}
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{/if}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</div>
</section>
</form>

View File

@ -42,6 +42,10 @@
{{/if}}
{{/if}}
<li class="flexrow"><label class="item-field-label-long">Levels</label>
<input type="text" class="item-field-label-medium" name="system.levels" value="{{system.levels}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="item-field-label-long">Skill Roll points</label>
<input type="text" class="item-field-label-medium" name="system.skillroll" value="{{system.skillroll}}" data-dtype="Number"/>
</li>

View File

@ -13,9 +13,10 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
</div>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</div>
</section>
</form>

View File

@ -1,4 +1,8 @@
<div class="tab description" data-group="primary" data-tab="description">
<div class="flexrow">
<label class="item-field-label-medium">Display name</label>
<input type="text" class="" name="system.displayname" value="{{system.displayname}}" data-dtype="string"/>
</div>
<div>
<label class="generic-label">Description</label>
<div class="medium-editor item-text-long-line">

View File

@ -8,6 +8,20 @@
</select>
</li>
<li class="flexrow"><label class="item-field-label-long">Type Modifier</label>
<select class="item-field-label-long" type="text" name="system.typemodifier" value="{{system.typemodifier}}" data-dtype="String">
{{#select system.typemodifier}}
{{#each config.powerTypeModifiers as |name key|}}
<option value="{{key}}">{{name}}</option>
{{/each}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="item-field-label-long">Is sense affecting ?</label>
<label class="item-field-label-medium"><input type="checkbox" name="system.senseaffecting" {{checked system.senseaffecting}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-long">Range</label>
<input type="text" class="item-field-label-medium" name="system.range" value="{{system.range}}" data-dtype="String"/>
</li>