--- layout: default --- {% if layout.platform == 'modded' %} {% assign spell_folder = 'spells' %} {% assign icon_folder = 'icons' %} {% assign spells_label = 'Spells' %} {% else %} {% assign spell_folder = 'vanilla-spells' %} {% assign icon_folder = 'vanilla-icons' %} {% assign spells_label = 'Vanilla Spells' %} {% endif %} {% if page.toc %} {% assign contentsTitle = page.toc_title | default: 'Contents' %} {% include toc.html html=content class='menu-list' h_min=2 h_max=3 contents_title=contentsTitle %} {% endif %} {% capture root %}{{ site.baseurl }}/{{ spell_folder }}{% endcapture %} {% if page.type == 'Arcane' %} {% assign parent_url = root | append: '/arcane' %} {% assign parent_label = 'Arcane' %} {% elsif page.type == 'Divine' %} {% assign parent_url = root | append: '/divine' %} {% assign parent_label = 'Divine' %} {% endif %}
{% assign alt = page.name | append: ' stone icon' %} {% assign icon = page.icon | append: 'b' | upcase %} {% include spell-icon.html icon_folder=icon_folder class='has-background-dark spell-page-icon' alt=alt icon=icon %}
{% if page.type == 'Arcane' %} {% assign classes = site.data.arcane-classes %} {% else %} {% assign classes = site.data.divine-classes %} {% endif %}
{% for class in classes %} {% if page.prohibited_classes contains class.value %} {% assign button_style = 'is-danger' %} {% elsif page.highlighted_classes contains class.value %} {% assign button_style = 'is-info' %} {% else %} {% assign button_style = 'is-primary' %} {% endif %} {{ class.name }} {% endfor %}
{{ content }}
{% if layout.platform == 'modded' %} {% assign other_spells = site.vanilla-spells %} {% assign other_platform_label = 'vanilla' %} {% assign message_color = 'info' %} {% else %} {% assign other_spells = site.spells %} {% assign other_platform_label = 'SR' %} {% assign message_color = 'warning' %} {% endif %}
{% assign matching_spells = other_spells | where: 'identifier',page.identifier %} {% for matching_spell in matching_spells %} {% capture matching_spell_link %}{{ matching_spell.name }}{% endcapture %} {% assign name = page.name | downcase %} {% assign matching_spell_name = matching_spell.name | downcase %} {% if name == matching_spell_name %} For the {{ other_platform_label }} version of the spell, see {{ matching_spell_link }}. {% elsif layout.platform == 'modded' %} This spell replaces {{ matching_spell_link }}. {% else %} This spell is replaced by {{ matching_spell_link }} in SR. {% endif %} {% else %} This spell does not have a direct equivalent in {{ other_platform_label }}. {% endfor %}