{% if pet.name %}{{ pet.name }} — {% endif %}{{ pet.race }}
{% if not pet.is_alive %}Deceased{% endif %}
{% endfor %}
{% endif %}
{% if dwarf.equipment or dwarf.wounds %}
{% if dwarf.equipment %}
Equipment
{% set weapons = dwarf.equipment | selectattr('mode', 'equalto', 'Weapon') | list if dwarf.equipment[0] is mapping else [] %}
{% set strapped = dwarf.equipment | selectattr('mode', 'equalto', 'Strapped') | list if dwarf.equipment[0] is mapping else [] %}
{% set worn = dwarf.equipment | selectattr('mode', 'equalto', 'Worn') | list if dwarf.equipment[0] is mapping else [] %}
{% if weapons %}
Weapons
{% for item in weapons %}
{{ item.description }}
{% endfor %}
{% endif %}
{% if strapped %}
Armor
{% for item in strapped %}
{{ item.description }}
{% endfor %}
{% endif %}
{% if worn %}
Clothing
{% for item in worn %}
{{ item.description }}
{% endfor %}
{% endif %}
{% endif %}
{% if dwarf.wounds %}
{% set permanent_wounds = [] %}
{% for wound in dwarf.wounds %}
{% if wound is mapping and wound.is_permanent %}
{% if permanent_wounds.append(wound) %}{% endif %}
{% elif wound is not mapping %}
{% if permanent_wounds.append(wound) %}{% endif %}
{% endif %}
{% endfor %}
{% if permanent_wounds %}
Wounds
{% for wound in permanent_wounds %}
{% if wound is mapping %}
{{ wound.body_part }} ({{ wound.wound_type }})
{% else %}
{{ wound }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
{% if dwarf.combat_highlights %}
Combat Record ({{ dwarf.combat_highlights | length }})