{% extends 'entity/layout.html.twig' %} {% from 'entity/layout.html.twig' import stats, stat_changes, rarity_stars, icon_img, currency_pill %} {% set entityName = item.name %} {% set backCategory = 'item' %} {% set backLabel = 'Objets' %} {% set targetLabels = {0: null, 1: '1 ennemi', 2: 'Tous les ennemis', 3: '1 allié', 4: 'Tous les alliés', 5: '1 allié mort', 6: 'Tous les alliés morts', 7: 'Utilisateur', 8: '2 ennemis', 9: '3 ennemis', 10: '4 ennemis'} %} {% set statLbl = {pvMax: 'PV Max', egMax: 'EG Max', attaque: 'Attaque', defense: 'Défense', arcane: 'Arcane', sagesse: 'Sagesse', vitesse: 'Vitesse', finesse: 'Finesse'} %} {% block detail %}
{{ icon_img(item) }}

{{ item.name }} {% include 'entity/_favorite_star.html.twig' with {favType: 'item', favEntityId: item.id} only %}

{% if item.type %}{{ item.type }}{% endif %} {% if item.isKeyItem %}Clé{% endif %} {% if item.isMaterial %}Matériau{% endif %}
{% if item.description %}

{{ item.description }}

{% endif %} {% if item.specialEffect %}
Effet spécial
{{ item.specialEffect }}
{% endif %} {% with {s: item.stats} %} {% if s.pvMax or s.egMax or s.attaque or s.defense or s.arcane or s.sagesse or s.vitesse or s.finesse %}
Stats
{{ stats(s) }}
{% endif %} {% endwith %} {% set hasEffects = item.targetType > 0 or item.statsBuff or item.statsDebuff or item.statusInflicted or item.statusHealed or item.flatDamage is not null or item.flatHeal is not null %} {% if item.statusImmunity %}
Immunités
{% for id in item.statusImmunity %}
{{ statusMap[id] ?? '?' }}
{% endfor %}
{% endif %} {% if item.grantsSkills %}
Compétences accordées
{% for id in item.grantsSkills %} {{ skillMap[id] ?? '?' }} {% endfor %}
{% endif %} {% if hasEffects %}
Effets
{% if item.targetType > 0 %}
Cible : {{ targetLabels[item.targetType] }}
{% endif %} {% for entry in item.statsBuff ?? [] %}
Buff {{ statLbl[entry['stat']] ?? entry['stat'] }} : {{ entry['turns']|default(0) }} tour{{ entry['turns']|default(0) != 1 ? 's' }}{% if entry['level'] is defined and entry['level'] > 1 %} ({{ entry['level'] }} niveaux){% endif %}
{% endfor %} {% for entry in item.statsDebuff ?? [] %}
Débuff {{ statLbl[entry['stat']] ?? entry['stat'] }} : {{ entry['turns']|default(0) }} tour{{ entry['turns']|default(0) != 1 ? 's' }}{% if entry['level'] is defined and entry['level'] > 1 %} ({{ entry['level'] }} niveaux){% endif %}
{% endfor %} {% if item.statusInflicted %}
Inflige : {% for e in item.statusInflicted %} {{ statusMap[e['status_id']] ?? '?' }}{% if e['probability'] < 100 %} ({{ e['probability'] }}%){% endif %}{% if not loop.last %}, {% endif %} {% endfor %}
{% endif %} {% if item.statusHealed %}
Soigne : {% for e in item.statusHealed %} {{ statusMap[e['status_id']] ?? '?' }}{% if e['probability'] < 100 %} ({{ e['probability'] }}%){% endif %}{% if not loop.last %}, {% endif %} {% endfor %}
{% endif %} {% if item.flatDamage is not null %}
Dégâts : {{ item.flatDamage }}
{% endif %} {% if item.flatHeal is not null %}
Soin : +{{ item.flatHeal }}
{% endif %}
{% endif %} {% include 'entity/_recipe_sections.html.twig' with { producedBy: producedBy ?? null, usedIn: usedIn ?? [], currentGameId: item.gameId, craftedNoun: '', } only %}
{% endblock %}