Added SoftLock on NPC sheet and +/- button to add or subtract Casualties and Panic.

This commit is contained in:
Vlyan
2022-01-21 18:03:57 +01:00
parent d6ee391ff5
commit ff413ed894
11 changed files with 103 additions and 28 deletions

View File

@@ -1,13 +1,13 @@
<fieldset class="fortification-content">
<legend class="section-header">
{{localize 'l5r5e.army.fortification.title'}}
{{#if options.editable}}
{{#if data.editable_not_soft_locked}}
<a data-item-type="army_fortification" class="army-fortification-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each data.splitItemsList.army_fortification as |item|}}
{{> 'systems/l5r5e/templates/items/army-fortification/army-fortification-entry.html' fortification=item editable=../options.editable}}
{{> 'systems/l5r5e/templates/items/army-fortification/army-fortification-entry.html' fortification=item editable=../data.editable_not_soft_locked}}
{{/each}}
</ul>
</fieldset>