Ajout items et fiches

This commit is contained in:
2024-06-04 21:05:54 +02:00
parent 6b47cd3f40
commit 949baa8359
59 changed files with 4585 additions and 2180 deletions

View File

@ -22,18 +22,60 @@
<li class="flexrow">
<label class="item-name-label-long">Type d'arme</label>
<select name="system.typeArme">
{{selectOptions config.armeTypes selected=system.typeArme labelAttr="label" blank=""}}
{{selectOptions config.armeTypes selected=system.typeArme labelAttr="label"}}
</select>
</li>
<li class="flexrow">
<label class="item-name-label-long">Compétence</label>
<select name="system.competence">
{{selectOptions config.armeCompetences selected=system.competence labelAttr="label"}}
</select>
</li>
<li class="flexrow">
<label class="item-name-label-long">Compétence secondaire</label>
<select name="system.competence2">
{{selectOptions config.armeCompetences selected=system.competence2 blank="" labelAttr="label"}}
</select>
</li>
<h3>Spécificités</h3>
<li class="flexrow">
<label class="item-name-label-long">Dégâts</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.degats" value="{{system.degats}}" data-dtype="String" />
</li>
{{#if (eq system.typeArme "melee")}}
<li class="flexrow">
<label class="item-name-label-long">Allonge</label>
<select name="system.allonge">
{{selectOptions config.armeAllonges selected=system.allonge labelAttr="label"}}
</select>
</li>
{{/if}}
{{#each system.specificites as |spec specId|}}
<li class="flexrow">
{{#if (isSpecArmeType specId @root.system.typeArme)}}
<label class="item-name-label-long">{{getConfigLabel "ARME_SPECIFICITE" specId}}</label>
<input type="checkbox" name="system.specificites.{{specId}}.hasSpec" {{checked
spec.hasSpec}} />
{{/if}}
</li>
{{/each}}
{{#if (eq system.typeArme "tir")}}
<h3>Portées</h3>
{{#each system.portees as |portee porteeId|}}
<li class="flexrow">
<label class="item-name-label-long">{{getConfigLabel "ARME_PORTEES" porteeId}}</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.portees.{{porteeId}}.value" value="{{portee.value}}" data-dtype="Number" />
</li>
{{/each}}
{{/if}}
<h3>Degats sur armures</h3>
{{#each system.degatsArmure as |degat degtId|}}
<li class="flexrow">
<label class="item-name-label-long">{{getConfigLabel "degatsArmure" degtId}}</label>
@ -42,6 +84,7 @@
</li>
{{/each}}
<h3>Autres</h3>
<li class="flexrow">
<label class="item-name-label-long">Bonus d'Initiative</label>
<input type="text" class="padd-right numeric-input item-field-label-short"