{# Sections « Recette de fabrication » + « Utilisée pour fabriquer » Attend : producedBy, usedIn, currentGameId, craftedNoun ('' pour masculin, 'e' pour féminin). #} {% from 'entity/layout.html.twig' import currency_pill, icon_img %} {% if producedBy %}
Fabrication
{% for ing in producedBy.ingredients %} {{ icon_img(ing.entity, 40) }} {{ ing.entity.name }} ×{{ ing.quantity }} {% endfor %} {% if producedBy.recipe.cost %} Coût : {{ currency_pill(producedBy.recipe.cost, currentGameId) }} {% endif %}
{% endif %} {% if usedIn is not empty %}
Utilisé{{ craftedNoun == 'e' ? 'e' : '' }} pour fabriquer
{% for u in usedIn %} {{ icon_img(u.crafted, 40) }} {{ u.crafted.name }} {% endfor %}
{% endif %}