mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
* Action Refactor Part #1 * Fixed Weapon/Armor features. Fixed Feature actions * f * Action Refactor Part #2 * Fixes * Remove ActionsField from Companion * Fixes * Localization fix * BaseDataItem hasActions false --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
23 lines
No EOL
1.9 KiB
Handlebars
23 lines
No EOL
1.9 KiB
Handlebars
<section
|
|
class="tab {{tabs.attack.cssClass}} {{tabs.attack.id}}"
|
|
data-tab="{{tabs.attack.id}}"
|
|
data-group="{{tabs.attack.group}}"
|
|
>
|
|
<fieldset class="one-column">
|
|
<legend>{{localize "DAGGERHEART.GENERAL.basics"}}</legend>
|
|
{{formGroup systemFields.attack.fields.img value=document.system.attack.img label="DAGGERHEART.GENERAL.imagePath" name="system.attack.img" localize=true}}
|
|
{{formGroup systemFields.attack.fields.name value=document.system.attack.name label="DAGGERHEART.ACTIONS.Settings.attackName" name="system.attack.name" localize=true}}
|
|
</fieldset>
|
|
<fieldset class="flex">
|
|
<legend>{{localize "DAGGERHEART.GENERAL.attack"}}</legend>
|
|
{{formField systemFields.attack.fields.roll.fields.bonus value=document.system.attack.roll.bonus label="DAGGERHEART.ACTIONS.Settings.attackBonus" name="system.attack.roll.bonus" localize=true}}
|
|
{{formField systemFields.attack.fields.range value=document.system.attack.range label="DAGGERHEART.GENERAL.range" name="system.attack.range" localize=true}}
|
|
{{#if systemFields.attack.fields.target.fields}}
|
|
{{ formField systemFields.attack.fields.target.fields.type value=document.system.attack.target.type label="DAGGERHEART.GENERAL.Target.single" name="system.attack.target.type" localize=true }}
|
|
{{#if (and document.system.attack.target.type (not (eq document.system.attack.target.type 'self')))}}
|
|
{{ formField systemFields.attack.fields.target.fields.amount value=document.system.attack.target.amount label="DAGGERHEART.GENERAL.amount" name="system.attack.target.amount" localize=true}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</fieldset>
|
|
{{> 'systems/daggerheart/templates/actionTypes/damage.hbs' fields=systemFields.attack.fields.damage.fields.parts.element.fields source=document.system.attack.damage path="system.attack." horde=(eq document.system.type 'horde')}}
|
|
</section> |