<div class="mgt2-npc-result traveller-npc-result">
  <div class="npc-header">
    <h3><i class="fas fa-user-astronaut"></i> PNJ Traveller généré</h3>
    <div class="npc-name">{{name.fullName}}</div>
  </div>

  {{#if createdActor}}
  <div class="npc-notice success">
    <i class="fas fa-check-circle"></i>
    Fiche d'acteur créée : {{createdActor.name}}
  </div>
  {{/if}}

  <div class="npc-details-grid">
    <div class="npc-detail">
      <div class="npc-detail-label">Rôle</div>
      <div class="npc-detail-value">{{display.roleLabel}}</div>
    </div>
    <div class="npc-detail">
      <div class="npc-detail-label">Catégorie</div>
      <div class="npc-detail-value">{{display.categoryLabel}}</div>
    </div>
    <div class="npc-detail">
      <div class="npc-detail-label">Expérience</div>
      <div class="npc-detail-value">{{display.experienceLabel}}</div>
    </div>
    <div class="npc-detail">
      <div class="npc-detail-label">Genre</div>
      <div class="npc-detail-value">{{display.genderLabel}}</div>
    </div>
  </div>

  <div class="npc-section">
    <h4><i class="fas fa-chart-bar"></i> Caractéristiques (UPP: {{upp}})</h4>
    <div class="npc-characteristics">
      {{#each UPP_ORDER}}
      <div class="npc-characteristic">
        <div class="npc-char-key">{{lookup ../display.characteristicLabels this}}</div>
        <div class="npc-char-value">{{lookup ../characteristics this}}</div>
        <div class="npc-char-dm">{{formatDm (lookup ../characteristics this)}}</div>
      </div>
      {{/each}}
    </div>
  </div>

  {{#if skills}}
  <div class="npc-section">
    <h4><i class="fas fa-graduation-cap"></i> Compétences</h4>
    <div class="npc-skills">
      {{#each skills}}
      {{#if (gt level 0)}}
      <div class="npc-skill {{skillLevelClass level}}" title="{{labelFr}}">
        <span class="npc-skill-name">{{labelFr}} {{level}}</span>
        <span class="npc-skill-level">{{skillLevelSymbol level}}</span>
      </div>
      {{/if}}
      {{/each}}
    </div>
  </div>
  {{/if}}

  <div class="npc-footer">
    <small>Généré par le module {{MODULE_ID}}</small>
  </div>
</div>
