{% macro src_link(source) %}{{ source.name }}{% endmacro %} {% macro item_href(source, item_id) %}/s/{{ source.name|u }}/item/{{ (item_id if item_id is not none else AGENT_LEVEL)|u }}{% endmacro %} {% macro event_link(source, id) %}{% if id > 0 %}#{{ id }}{% else %}(no id){% endif %}{% endmacro %} {% macro flags(names) %}{% for f in names %}{{ f }}{% endfor %}{% endmacro %} {% macro turn_row(source, t) %}
Going in circles: {{ c.kind }} at turns {% for i in c.turns %}{{ i + 1 }}{% if not loop.last %}, {% endif %}{% endfor %}: {{ c.detail }}
{% endfor %} {% for kind, obj in node.entries %} {% if kind == "turn" %}{{ turn_row(source, obj) }}{% elif kind == "event" %}{{ step(source, obj) }}{% else %}{{ run_node(source, obj) }}{% endif %} {% endfor %}