Update rolls and similar stuff

This commit is contained in:
2022-11-10 11:04:05 +01:00
parent ad5f91fbb2
commit 927ddf1328
7 changed files with 103 additions and 60 deletions

View File

@ -67,7 +67,7 @@
<img class="item-name-img" src="systems/fvtt-hawkmoon-cyd/assets/icons/{{attr.labelnorm}}.webp">
<span class="item-name-label competence-name item-field-label-medium"><a
class="roll-attribut">{{attr.label}}</a></span>
<select class="status-small-label color-class-common item-field-label-short" type="text"
<select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number">
{{#select attr.value}}
{{> systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau.html}}
@ -81,18 +81,16 @@
<div class="sheet-box color-bg-archetype">
<h4 class="item-name-label competence-name">Adversité</h4>
<ul class="item-list alternate-list">
<li class="item flexrow">
<label class="label-name item-field-label-short">Bleue</label>
<label class="label-name item-field-label-short">{{system.adversite.bleue}}</label>
</li>
<li class="item flexrow">
<label class="label-name item-field-label-short">Rouge</label>
<label class="label-name item-field-label-short">{{system.adversite.rouge}}</label>
</li>
<li class="item flexrow">
<label class="label-name item-field-label-short">Noire</label>
<label class="label-name item-field-label-short">{{system.adversite.noire}}</label>
{{#each system.adversite as |adv key|}}
<li class="item flexrow" data-adversite="{{key}}">
<label class="label-name item-field-label-short">{{upperFirst key}}</label>
<label class="label-name item-field-label-short">{{adv}}</label>
<span class="status-small-label no-grow">
<a class="adversite-modify plus-minus-button" data-adversite-value="1">+</a>
<a class="adversite-modify plus-minus-button" data-adversite-value="-1">&nbsp;-</a>
</span>
</li>
{{/each}}
</ul>
</div>