--- --- Ciutadella & Dragons - Razas
{% assign race_index = site.data.index %}
Filtrar por atributo con bonificación
{% for filter_attr in filter_attrs %} {% assign attr_parts = filter_attr | split: ":" %} {% endfor %}

Si marcas varios atributos se muestran las razas que bonifican todos ellos.

Buscar raza por nombre {% assign all_race_files = race_index.variantes | concat: race_index.razas %} {% assign race_entries = "" %} {% for race_file in all_race_files %} {% assign race_key = race_file | remove: ".json" %} {% assign race = site.data[race_key] %} {% if race %}{% assign race_entries = race_entries | append: race.raceName | append: "::" | append: race_key | append: "~~" %}{% endif %} {% endfor %} {% assign race_entries = race_entries | split: "~~" | sort_natural %}

Consejo: también puedes usar Ctrl+F (o «Buscar en la página» en el móvil) para buscar cualquier texto de las fichas.

Variantes

{% for race_file in race_index.variantes %} {% assign race_key = race_file | remove: ".json" %} {% assign race = site.data[race_key] %} {% if race %} {% include race-card.html race=race race_key=race_key is_variant=true section_id="variantes" %} {% else %}

No se pudo cargar {{ race_file | escape }}.

{% endif %} {% endfor %}

Razas

{% for race_file in race_index.razas %} {% assign race_key = race_file | remove: ".json" %} {% assign race = site.data[race_key] %} {% if race %} {% include race-card.html race=race race_key=race_key is_variant=false section_id="razas" %} {% else %}

No se pudo cargar {{ race_file | escape }}.

{% endif %} {% endfor %}