{% extends 'entity/layout.html.twig' %} {% from 'entity/layout.html.twig' import icon_img %} {% set entityName = status.name %} {% set backCategory = 'status' %} {% set backLabel = 'Statuts' %} {% block detail %}
{{ icon_img(status) }}

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

{% if status.restrictionType > 0 %} {{ ('status.restriction_type.' ~ status.restrictionType)|trans({}, 'game') }} {% endif %} {{ ('game.id.' ~ status.gameId)|trans({}, 'game') }}
{% if status.specialEffect %}
Effet spécial
{{ status.specialEffect|nl2br }}
{% endif %}
Durée & conditions
{% if status.minTurns is not null or status.maxTurns is not null %} Durée : {% if status.minTurns == status.maxTurns %} {{ status.minTurns }} tour{{ status.minTurns != 1 ? 's' }} {% elseif status.minTurns is not null and status.maxTurns is not null %} {{ status.minTurns }}–{{ status.maxTurns }} tours {% elseif status.minTurns is not null %} {{ status.minTurns }}+ tours {% else %} ≤ {{ status.maxTurns }} tours {% endif %} {% endif %} {% if status.footsteps is not null %} Pas : {{ status.footsteps }} {% endif %} {% if status.damageTaken is not null %} Dissipation : {{ status.damageTaken }}% PV reçus {% endif %}
{% set endConds = [] %} {% if status.endsAfterBattle %}{% set endConds = endConds|merge(['Fin de combat']) %}{% endif %} {% if status.endsAfterTurn %}{% set endConds = endConds|merge(['Fin de tour']) %}{% endif %} {% if status.endsAfterAction %}{% set endConds = endConds|merge(['Fin d\'action']) %}{% endif %} {% if endConds is not empty %}
Se dissipe : {{ endConds|join(' · ') }}
{% endif %}
{% set hasRegen = status.regenPv is not null or status.regenEg is not null or status.regenPower is not null %} {% if hasRegen %}
Régénération
{% if status.regenPv is not null %} PV : {{ status.regenPv > 0 ? '+' }}{{ status.regenPv }}% {% endif %} {% if status.regenEg is not null %} EG : {{ status.regenEg > 0 ? '+' }}{{ status.regenEg }}% {% endif %} {% if status.regenPower is not null %} Power : {{ status.regenPower > 0 ? '+' }}{{ status.regenPower }}% {% endif %}
{% endif %} {% set mults = [] %} {% if status.multiplierPvMax is not null and status.multiplierPvMax != 1 %}{% set pct = ((status.multiplierPvMax - 1) * 1000)|round / 10 %}{% set mults = mults|merge([{label: 'PV', css: 'pv', pct: pct}]) %}{% endif %} {% if status.multiplierEgMax is not null and status.multiplierEgMax != 1 %}{% set pct = ((status.multiplierEgMax - 1) * 1000)|round / 10 %}{% set mults = mults|merge([{label: 'EG', css: 'eg', pct: pct}]) %}{% endif %} {% if status.multiplierAttaque is not null and status.multiplierAttaque != 1 %}{% set pct = ((status.multiplierAttaque - 1) * 1000)|round / 10 %}{% set mults = mults|merge([{label: 'ATQ', css: 'atq', pct: pct}]) %}{% endif %} {% if status.multiplierDefense is not null and status.multiplierDefense != 1 %}{% set pct = ((status.multiplierDefense - 1) * 1000)|round / 10 %}{% set mults = mults|merge([{label: 'DEF', css: 'def', pct: pct}]) %}{% endif %} {% if status.multiplierArcane is not null and status.multiplierArcane != 1 %}{% set pct = ((status.multiplierArcane - 1) * 1000)|round / 10 %}{% set mults = mults|merge([{label: 'ARC', css: 'arc', pct: pct}]) %}{% endif %} {% if status.multiplierSagesse is not null and status.multiplierSagesse != 1 %}{% set pct = ((status.multiplierSagesse - 1) * 1000)|round / 10 %}{% set mults = mults|merge([{label: 'SAG', css: 'sag', pct: pct}]) %}{% endif %} {% if status.multiplierVitesse is not null and status.multiplierVitesse != 1 %}{% set pct = ((status.multiplierVitesse - 1) * 1000)|round / 10 %}{% set mults = mults|merge([{label: 'VIT', css: 'vit', pct: pct}]) %}{% endif %} {% if status.multiplierFinesse is not null and status.multiplierFinesse != 1 %}{% set pct = ((status.multiplierFinesse - 1) * 1000)|round / 10 %}{% set mults = mults|merge([{label: 'FIN', css: 'fin', pct: pct}]) %}{% endif %} {% if mults is not empty %}
Multiplicateurs de stats
{% for m in mults %}
{{ m.label }} {{ m.pct > 0 ? '+' }}{{ m.pct }}%
{% endfor %}
{% endif %} {% set flags = [] %} {% if status.bodyguard %}{% set flags = flags|merge(['Garde du corps']) %}{% endif %} {% if status.keepsPower %}{% set flags = flags|merge(['Conserve Power']) %}{% endif %} {% if status.halfEncounters %}{% set flags = flags|merge(['Rencontres ÷2']) %}{% endif %} {% if status.noEncounters %}{% set flags = flags|merge(['Aucune rencontre']) %}{% endif %} {% if status.noSurprises %}{% set flags = flags|merge(['Pas de surprise']) %}{% endif %} {% if status.morePreventives %}{% set flags = flags|merge(['Plus de préventives']) %}{% endif %} {% if status.doubleMoney %}{% set flags = flags|merge(['Argent ×2']) %}{% endif %} {% if status.betterLoot %}{% set flags = flags|merge(['Meilleur butin']) %}{% endif %} {% if status.noSkills %}{% set flags = flags|merge(['Compétences désactivées']) %}{% endif %} {% if flags is not empty %}
Effets passifs
{% for flag in flags %} {{ flag }} {% endfor %}
{% endif %} {% if status.grantsSkills %}
Compétences accordées
{% for id in status.grantsSkills %} {{ skillMap[id] ?? '?' }} {% endfor %}
{% endif %}
{% endblock %}