@if (combat(); as combat) {

{{ combat.player.name }}

{{ combat.player.currentHp }} / {{ combat.player.maxHp }}
@if (combat.player.statusEffects.length) {
    @for (effect of combat.player.statusEffects; track effect.type) {
  • {{ statusEffectLabel(effect.type) }} · {{ effect.remainingRounds }}
  • }
}

Round {{ combat.round }}

{{ combat.monster.name }} Level {{ combat.monster.level }}

{{ combat.monster.currentHp }} / {{ combat.monster.maxHp }}
@if (monsterIntentLabel(); as intent) {

{{ intent }}

} @if (monsterGuardLabel(); as guard) {

{{ guard }}

} @if (monsterIsEnraged()) {

{{ combat.monster.name }} is enraged.

}
@if (combat.status === 'ACTIVE') { }
@if (combat.status === 'WON') {

Victory

{{ combat.monster.name }} has been defeated.

@if (combat.rewards; as rewards) {
@if (lootGroups(); as groups) { @if (groups.length) { @for (group of groups; track group.key) {

{{ group.title }}

    @for (reward of group.items; track reward.characterItemId) {
  • }
} } @else {

No notable loot found.

} } @if (leftBehind(); as refused) { @if (refused.length) {

Left Behind

    @for (entry of refused; track entry.key) {
  • {{ entry.name }} ×{{ entry.quantity }} — no room left
  • }
} } @if (rewards.capacities.length) { }
}
} @else if (combat.status === 'LOST') {

Defeat

{{ combat.player.name }} has been defeated.

}
} @else if (combatStore.loading()) {

Loading combat…

} @if (combatStore.error(); as error) { }