{% 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 %}
{{ ['上', '下'][battle.half - 1] }}半
{% endif %}