{% for battle in chamber.battles %}
{% for character in battle.characters %}
{% if avatar_data[character.id] > 0 %}
{% set constellation = avatar_data[character.id] %}
{% set bg = ['blue','blue', 'green','green', 'red', 'red'][constellation - 1] %}
{{ constellation }} 命
{% endif %}
Lv.{{ character.level }}
{% endfor %}
{% if loop.length > 1 %}
{{ ['上', '下'][loop.index0] }}半
{% endif %}