{% extends "base.html" %} {% block title %}Combat Debug - Dev Tools{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
DEV MODE - Combat Session {{ session_id[:8] }}...

Combat State

{% include 'dev/partials/combat_state.html' %}

Debug Actions

← Back to Combat Hub

Combat Log

{% for entry in combat_log %}
{% if entry.actor %} {{ entry.actor }} {% endif %} {{ entry.message }} {% if entry.damage %} -{{ entry.damage }} HP {% endif %} {% if entry.heal %} +{{ entry.heal }} HP {% endif %} {% if entry.is_crit %} CRITICAL! {% endif %}
{% else %}
Combat begins! {% if is_player_turn %} Take your action. {% else %} Waiting for enemy turn... {% endif %}
{% endfor %}
[+] Raw State JSON (click to toggle)

Turn Order

{% for combatant_id in turn_order %} {% set ns = namespace(combatant=None) %} {% for c in encounter.combatants %} {% if c.combatant_id == combatant_id %} {% set ns.combatant = c %} {% endif %} {% endfor %}
{{ loop.index }} {% if ns.combatant %}{{ ns.combatant.name }}{% else %}{{ combatant_id[:8] }}{% endif %}
{% endfor %}

Active Effects

{% if player_combatant and player_combatant.active_effects %} {% for effect in player_combatant.active_effects %}
{{ effect.name }} {{ effect.remaining_duration }} turns
{% endfor %} {% else %}

No active effects

{% endif %}
{% endblock %}