remove yaml symbol
This commit is contained in:
parent
d780841039
commit
add8752636
@ -73,53 +73,18 @@
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro named_symbol_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 %}
|
||||
|
||||
<div class="fjomp_card{{" " + yaml.style if yaml.style}}">
|
||||
<header>
|
||||
{{ yaml.name or xml.name }}
|
||||
</header>
|
||||
{% if yaml.symbol %}
|
||||
<div class="symbol">
|
||||
{% if " " in yaml.symbol %}
|
||||
{% for symbol in yaml.symbol | split(" ") %}
|
||||
{{ named_symbol_to_emoji(symbol) }}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{{ named_symbol_to_emoji(yaml.symbol) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% elif xml.symbol %}
|
||||
{% if xml.symbol %}
|
||||
<div class="symbol">
|
||||
{{ xml.symbol }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<figure>
|
||||
{% for figure in yaml.figures %}
|
||||
{% for figure in yaml.figures or [] %}
|
||||
{{ figure_layer(figure) }}
|
||||
{% endfor %}
|
||||
{% if xml.image %}
|
||||
|
@ -1,5 +1,4 @@
|
||||
name: Hit enemy
|
||||
symbol: defence
|
||||
#style: item
|
||||
tags:
|
||||
- combat
|
||||
|
Loading…
Reference in New Issue
Block a user