Added ability to apply the strife to the actor

This commit is contained in:
Vlyan
2022-02-13 13:34:24 +01:00
parent 64b436627f
commit 8c4072d8af
11 changed files with 83 additions and 22 deletions

View File

@@ -73,7 +73,7 @@
{{/if}}
{{#if strife}}
<i class="i_strife" title="{{localize 'l5r5e.chatdices.strife'}}"></i>x{{strife}}
<i class="i_strife" title="{{localize 'l5r5e.chatdices.strife'}}"></i>x{{strife}} {{#if ../l5r5e.strifeApplied}}<sup>{{../l5r5e.strifeApplied}}</sup>{{/if}}
{{/if}}
</div>

View File

@@ -38,7 +38,7 @@
</header>
<section class="rnk-ct">
{{!-- Body --}}
{{#if options.editable}}
{{^if l5r5e.rnkEnded}}
{{!-- Face Rings --}}
<fieldset class="dropbox swap">
<legend class="section-header">
@@ -137,6 +137,20 @@
</tr>
{{/each}}
</table>
{{!-- Strife selection --}}
{{#if l5r5e.summary.strife}}
<div class="form-group" style="width: 100%;">
<div class="form-fields"></div>
<div class="form-fields">
<input type="range" name="strifeApplied" data-dtype="Number" value="{{l5r5e.strifeApplied}}" min="0" max="{{l5r5e.summary.strife}}" step="1">
<span class="range-value">{{l5r5e.strifeApplied}}</span> <i class="i_strife"></i>
</div>
<div class="form-fields"></div>
</div>
<button id="finalize" name="finalize" type="button" {{#if data.submitDisabled}}disabled{{/if}}>
{{ localize 'l5r5e.roll_n_keep.bt_strife' }} <i class="fas fa-arrow-circle-right"></i>
</button>
{{/if}}
{{/if}}
</section>
</form>