{% for chal in game.challenges if chal.is_active %} {% set applied_ids = json_loads(chal.applied_obstacle_ids) %}

{{ chal.title }}

{% if chal.description %}

{{ chal.description }}

{% endif %}
Applied Obstacles to beat:
{% for obs_id in applied_ids %} {% set obs = get_obstacle_by_id(obs_id) %} {% if obs %}
{{ obs.symbol }} {{ obs.title }} (Difficulty: {% if parse_card(obs.original_card).value in ["J", "Q", "K"] %} Rank ({{ player.rank }}) {% else %} {{ obs.current_value }} {% endif %})
{% if player.role == "pirat" %}
{% else %} Waiting for Pi-Rats to resolve {% endif %}
{% endif %} {% endfor %}
{% else %}

No active challenges. Deep players should describe the scene and call for challenges!

{% endfor %}