{% macro figure_layer(figure) %} {% set figure_style %}{% filter cull_whitespace %} {% if figure.opacity!=1 %}opacity: {{ figure.opacity }};{% endif %} {% if figure.color!=1 %}color: {{ figure.color }};{% endif %} transform: {% if figure.offset|any %}translate({{ figure.offset[0]*100 }}%, {{ figure.offset[1]*100 }}%){% endif %} {% if figure.rotation %}rotate({{ figure.rotation }}deg){% endif %} {% if figure.flip_x %}scaleX(-1){% endif %} {% if figure.flip_y %}scaleY(-1){% endif %} {% if figure.scale!=1 %}scale({{ figure.scale }}){% endif %} ; {% endfilter %}{% endset %}
{% if figure.type == "material-icons" %} {# https://material.io/icons/ #} {{ figure.name }} {% elif figure.type == "mdi" %} {# https://materialdesignicons.com/ #} {% elif figure.type == "fa" %} {# http://fontawesome.io/icons/ #} {% elif figure.type == "lnr" %} {# https://linearicons.com/free #} {% elif figure.type == "oi" %} {# https://useiconic.com/open #} {% elif figure.type == "svg" %} {# /cards/svg #} {% if figure.color == true %} {% elif figure.color %} {% else %} {% endif %} {% elif figure.type == "img" %} {# /cards/img #} {% if figure.color == true %} {% elif figure.color %} {% else %} {% endif %} {% elif figure.type == "url" %} {% if figure.color == true %} {% elif figure.color %} {% else %} {% endif %} {% endif %}
{% endmacro %} {% macro named_icon_to_emoji(name) %} {% if "AIR" in name | upper %} 🌊 {% elif "ALCHEMY" in name | upper %} ⚗ïļ {% elif "ANIMAL" in name | upper %} ðŸū {% elif "COMBAT" in name | upper %} ⚔ïļ {% elif "CRAFTING" in name | upper %} ⚒ {% elif "DARK" in name | upper %} 💀 {% elif "DEFENCE" in name | upper %} ðŸ›Ą {% elif "EARTH" in name | upper %} ðŸŒą {% elif "FIRE" in name | upper %} ðŸ”Ĩ {% elif "HOLY" in name | upper %} ☀ïļ {% elif "INNATE" in name | upper %} 🧙 {% elif "MAGIC" in name | upper %} ðŸ”Ū {% elif "MARKSMANSHIP" in name | upper %} ðŸŽŊ {% elif "MARTIAL" in name | upper %} ðŸĨŠ {% elif "META" in name | upper %} ðŸ§Đ {% elif "PERFORMANCE" in name | upper %} 🎚 {% elif "SHAPESHIFTING" in name | upper %} ðŸŧ {% elif "SKULLDUGGERY" in name | upper %} ⚰ïļ {% elif "TECHNIQUE" in name | upper %} ðŸŽē {% elif "WATER" in name | upper %} 🌊 {% elif "WEAPONMASTER" in name | upper %} ðŸĪš {% else %} {{name}} {% endif %} {% endmacro %}
{{ card.title }}
{% if card.icon %}
{% if " " in card.icon %} {% for icon in card.icon.split(" ") %} {{ named_icon_to_emoji(icon) }} {% endfor %} {% else %} {{ named_icon_to_emoji(card.icon) }} {% endif %}
{% endif %}
{% for figure in card.figures %} {{ figure_layer(figure) }} {% endfor %}
{% for cost in card.costs %}
{% if cost.split(" ") | length == 2 and cost.split(" ")[0] | int(-1) != -1 %} {{ cost.split(" ")[0] }}
{{ cost.split(" ")[1] }} {% else %} {{ cost }} {% endif %}
{% endfor %} {% for label, data in [ ["Difficulty", xml.difficulty], ["Power", xml.power], ["Range", xml.range], ["Duration", xml.duration], ["CP", xml.cp] ] %} {% if data %}
{{ data }}
{{ label }}
{% endif %} {% endfor %}
{% if card.flavor %}
"{{ card.flavor }}"
{% endif %} {% if card.description %}
{{ card.description | markdown | safe }}
{% endif %} {% if card.steps %} {% endif %}
{#
{{ card }}
#}