@if (monster) { {{ monster.name }} } @else if (isLoading) { } @else { Monster Details } @if (isLoading) {

Loading monster...

} @else if (error && !isLoading) {

{{ error }}

Back to Monsters
} @else if (monster) {
{{ monster.name.charAt(0) }}
{{ monster.name }} {{ monster.size }} {{ monster.type }}, {{ monster.alignment }}
CR {{ monster.challenge_rating }} {{ monster.xp }} XP
@for (ability of abilityScores; track ability.key) {
{{ ability.abbr }}
{{ getAbility(ability.key).value }}
}
@if (selectedSegment === 'stats') {
AC
{{ getArmorClassValue() }}
HP
{{ monster.hit_points }}
Speed
{{ getSpeedText() }}
Prof.
@if (monster.proficiencies && monster.proficiencies.length > 0) { Proficiencies @for (prof of monster.proficiencies; track prof.proficiency.index) { {{ getProficiencyName(prof.proficiency.name) }} } } Perception & Communication

Senses

@if (monster.senses.darkvision) { Darkvision {{ monster.senses.darkvision }} } @if (monster.senses.blindsight) { Blindsight {{ monster.senses.blindsight }} } Passive Perception {{ monster.senses.passive_perception }}

Languages

{{ monster.languages || 'None' }}

@if (monster.damage_resistances.length || monster.damage_immunities.length || monster.damage_vulnerabilities.length || monster.condition_immunities.length) { Resistances & Immunities @if (monster.damage_resistances.length) {

Damage Resistances

@for (res of monster.damage_resistances; track res) { {{ res }} }
} @if (monster.damage_immunities.length) {

Damage Immunities

@for (imm of monster.damage_immunities; track imm) { {{ imm }} }
} @if (monster.condition_immunities.length) {

Condition Immunities

@for (imm of monster.condition_immunities; track imm) { {{ imm.name }} }
} @if (monster.damage_vulnerabilities.length) {

Vulnerabilities

@for (vuln of monster.damage_vulnerabilities; track vuln) { {{ vuln }} }
}
}
} @if (selectedSegment === 'abilities') {
@if (monster.special_abilities && monster.special_abilities.length > 0) { Special Abilities @for (ability of monster.special_abilities; track ability.name) { {{ ability.name }}

@if (ability.usage) {
{{ ability.usage.type }}: {{ ability.usage.times }} times
}
}
} @else {

No special abilities

}
} @if (selectedSegment === 'actions') {
@if (monster.actions && monster.actions.length > 0) { Actions @for (action of monster.actions; track action.name) { {{ action.name }}

@if (action.attack_bonus !== undefined) {
@if (action.damage && action.damage.length > 0) { @for (dmg of action.damage; track dmg.damage_type.name) { } }
}
}
} @if (monster.legendary_actions && monster.legendary_actions.length > 0) { Legendary Actions @for (action of monster.legendary_actions; track action.name) { {{ action.name }}

@if (action.damage && action.damage.length > 0) {
@for (dmg of action.damage; track dmg.damage_type.name) { }
}
}
}
}
}