<section>
  {{> "systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/header.hbs"}}
  <div class="sheet-body">
  <fieldset>
    <div class="form-group">
      <label for="system.competence">Compétence de mêlée</label>
      <select name="system.competence" data-dtype="String">
        {{#select system.competence}}
        <option value="">- impossible -</option>
        {{#each competenceMeleeChoices as |label key|}}
        <option value="{{key}}">{{label}}</option>
        {{/each}}
        {{/select}}
      </select>
    </div>
    <div class="form-group">
      <label for="system.lancer">Compétence de lancer</label>
      <select name="system.lancer" data-dtype="String">
        {{#select system.lancer}}
        <option value="">- impossible -</option>
        {{#each competenceLancerChoices as |label key|}}
        <option value="{{key}}">{{label}}</option>
        {{/each}}
        {{/select}}
      </select>
    </div>
    <div class="form-group">
      <label for="system.tir">Compétence de tir</label>
      <select name="system.tir" data-dtype="String">
        {{#select system.tir}}
        <option value="">- impossible -</option>
        {{#each competenceTirChoices as |label key|}}
        <option value="{{key}}">{{label}}</option>
        {{/each}}
        {{/select}}
      </select>
    </div>
    {{formField systemFields.dommages value=system.dommages}}
    {{formField systemFields.mortalite value=system.mortalite choices=mortaliteChoices}}
    <div class="form-group">
      <label for="system.resistance">Résistance</label>
      {{#if (lte system.resistance 0)}}
      <img class="equipement-inutilisable" src="systems/foundryvtt-reve-de-dragon/assets/ui/broken.svg" data-tooltip="{{item.name}} est inutilisable, sa résistance est de 0"/>
      {{/if}}
      <div class="form-fields">
        <input name="system.resistance" type="number" data-dtype="Number" value="{{system.resistance}}" min="0"/>
      </div>
    </div>
    {{formField systemFields.categorie_parade value=system.categorie_parade choices=categorieParadeChoices}}
    {{formField systemFields.force value=system.force}}
    {{formField systemFields.rapide value=system.rapide}}
    {{formField systemFields.unemain value=system.unemain}}
    {{formField systemFields.deuxmains value=system.deuxmains}}
    {{formField systemFields.portee_courte value=system.portee_courte}}
    {{formField systemFields.portee_moyenne value=system.portee_moyenne}}
    {{formField systemFields.portee_extreme value=system.portee_extreme}}
    {{formField systemFields.penetration value=system.penetration}}
    {{formField systemFields.magique value=system.magique}}
    {{#if system.magique}}
    {{formField systemFields.resistance_magique value=system.resistance_magique}}
    {{formField systemFields.ecaille_efficacite value=system.ecaille_efficacite}}
    {{/if}}
    {{formField systemFields.initpremierround value=system.initpremierround choices=initChoices}}
    {{formField systemFields.equipe value=system.equipe}}
  </fieldset>
  {{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-inventaire.hbs"}}
  {{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-description.hbs"}}
  </div>
</section>
