Add moves to sheet

This commit is contained in:
walcutt 2024-12-06 15:00:16 -05:00
parent 1ef45ee919
commit 92f03e3fab
2 changed files with 19 additions and 1 deletions

View File

@ -57,7 +57,8 @@ export class HenchDataModel extends foundry.abstract.TypeDataModel {
}),
stress: new NumberField({ required: true, integer: true, min: 0, initial: 0, max: 12 }),
moves: cappedArrayField(moveField(), 6),
moves: cappedArrayField(moveField(), 5),
customMove: moveField(),
experienceTriggers: cappedArrayField(markableField(), 4),
experience: new NumberField({ required: true, integer: true, min: 0, initial: 0, max: 5 }),

View File

@ -59,6 +59,23 @@
</li>
</ul>
<h3>Abilities</h3>
<ul>
{{#each actor.system.moves}}
<li>
<input type="checkbox" class="hench-checkbox-toggle-field" data-field-path="system.moves[{{@index}}].marked" {{#if this.marked}}checked{{/if}} />
<span><b>{{this.name}}:</b> {{this.description}}</span>
{{#if this.hasWriteIn}}
<input type="text" class="hench-text-input" data-field-path="system.moves[{{@index}}.writein]" value="{{this.writein}}" />
{{/if}}
</li>
{{/each}}
<li>
<input type="checkbox" class="hench-checkbox-toggle-field" data-field-path="system.customMove.marked" {{#if actor.system.customMove.marked}}checked{{/if}} />
<textarea class="hench-text-input" data-field-path="system.customMove.description" {{#if actor.system.customMove.marked}}{{else}}disabled{{/if}}>{{actor.system.customMove.description}}</textarea>
</li>
</ul>
<h3> Harm: </h3>
<div>
<h4>Level 1:</h4>