{% import "macro.html" as macro %}
{{ macro.tiles_view(tiles[:-1], sorted=False) }} {{ macro.tiles_view([tiles[-1]], style='transform: rotate(90deg)') }} {% if regular %} {% for fr in furo %} {{ macro.tiles_view(fr.tiles, style="margin-inline-start: 16px") }} {% endfor %} {% endif %}
{% if regular %}
手牌拆解
雀头
{{ macro.tiles_view([pattern.jyantou, pattern.jyantou], size="small") }}
{% if (pattern.menzen_mentsu | length) > 0 %}
面子
{% for mt in pattern.menzen_mentsu %} {{ macro.tiles_view(mt.tiles, size="small", style="margin-inline-end: 16px") }} {% endfor %}
{% endif %} {% if (furo | length) > 0 %}
副露
{% for fr in furo %} {{ macro.tiles_view(fr.tiles, size="small", style="margin-inline-end: 16px") }} {% endfor %}
{% endif %}
{% endif %}
自摸时
役种
{% for yaku in hora_tsumo.yaku %} {{ yaku_mapping[yaku] }} {% endfor %}
番数
{% if hora_tsumo.has_yakuman %} {{ (hora_tsumo.yaku | sum(attribute='han')) // 13 }}倍役满 {% else %} {{ hora_tsumo.han }}番 {% endif %}
符数
{{ hora_tsumo.hu }}
亲家和牌
{{ get_tsumo_text(0, hora_tsumo.parent_point.tsumo, True) }}
子家和牌
{{ get_tsumo_text(hora_tsumo.child_point.tsumo_parent, hora_tsumo.child_point.tsumo_child, False) }}
荣和时
役种
{% for yaku in hora_ron.yaku %} {{ yaku_mapping[yaku] }} {% endfor %}
番数
{% if hora_ron.has_yakuman %} {{ (hora_ron.yaku | sum(attribute='han')) // 13 }}倍役满 {% else %} {{ hora_ron.han }}番 {% endif %}
符数
{{ hora_ron.hu }}
亲家和牌
{{ get_ron_text(hora_ron.parent_point.ron, True) }}
子家和牌
{{ get_ron_text(hora_ron.child_point.ron, False) }}