Get the weapons block implemented

This commit is contained in:
Oliver-Akins 2023-12-24 22:53:08 -07:00
parent a8619246fe
commit f68e7161df
4 changed files with 149 additions and 27 deletions

View file

@ -205,7 +205,82 @@
{{#> dotdungeon.panel class="weapons" title="dotdungeon.actor.pc.panel.weapons"}}
Weapons
<details class="main-hand" {{dotdungeon-expanded meta.expanded "weapons.main-hand"}}>
<summary data-collapse-id="weapons.main-hand">
Main-Hand
</summary>
<label>
Name
<input
type="text"
name=""
>
</label>
<label>
Damage
<select name="system.weapon.mainHand.damage"></select>
</label>
<label>
Ranged
<input
type="checkbox"
name="system.weapon.mainHand.ranged"
{{checked system.weapon.mainHand.ranged}}
>
</label>
{{#if system.weapon.mainHand.ranged}}
<label>
Scope
<input
type="checkbox"
name="system.weapon.mainHand.scope"
{{checked system.weapon.mainHand.scope}}
>
</label>
<label>
Ammo
<select name=""></select>
</label>
{{/if}}
</details>
<details {{dotdungeon-expanded meta.expanded "weapons.off-hand"}}>
<summary data-collapse-id="weapons.off-hand">
Off-Hand
</summary>
<label>
Name
<input
type="text"
name=""
>
</label>
<label>
Damage
<select name="system.weapon.offHand.damage"></select>
</label>
<label>
Ranged
<input
type="checkbox"
name="system.weapon.offHand.ranged"
{{checked system.weapon.offHand.ranged}}
>
</label>
{{#if system.weapon.offHand.ranged}}
<label>
Scope
<input
type="checkbox"
name="system.weapon.offHand.scope"
{{checked system.weapon.offHand.scope}}
>
</label>
<label>
Ammo
<select name=""></select>
</label>
{{/if}}
</details>
{{/ dotdungeon.panel}}
@ -244,6 +319,10 @@
<pre><code>{{dotdungeon-stringify settings}}</code></pre>
</div>
<hr>
<div>
Expanded: {{dotdungeon-stringify expanded}}
</div>
<hr>
<div>
System:
<pre><code>{{dotdungeon-stringify system}}</code></pre>