@if (scene) {

@if (scene.icon) { } {{ scene.name }}

{{ 'sceneView.subtitle' | translate }}

@if ((scene.illustrationImageIds?.length ?? 0) > 0) {
}

📝 {{ 'sceneView.descriptionSectionTitle' | translate }}

@if (scene.description?.trim()) {

{{ scene.description }}

} @else {

{{ 'sceneView.empty' | translate }}

}
@if (scene.location?.trim() || scene.timing?.trim()) {
@if (scene.location?.trim()) {

📍 {{ 'sceneView.locationSectionTitle' | translate }}

{{ scene.location }}

} @if (scene.timing?.trim()) {

{{ 'sceneView.timingSectionTitle' | translate }}

{{ scene.timing }}

}
} @if (scene.atmosphere?.trim()) {

🌫️ {{ 'sceneView.atmosphereSectionTitle' | translate }}

{{ scene.atmosphere }}

} @if (scene.playerNarration?.trim()) {

📖 {{ 'sceneView.narrationSectionTitle' | translate }}

{{ scene.playerNarration }}

} @if (scene.choicesConsequences?.trim()) {

🔀 {{ 'sceneView.choicesSectionTitle' | translate }}

{{ scene.choicesConsequences }}

} @if (scene.combatDifficulty?.trim() || scene.enemies?.trim() || linkedEnemies.length > 0) { @if (scene.combatDifficulty?.trim()) {

⚔️ {{ 'sceneView.combatDifficultySectionTitle' | translate }}

{{ scene.combatDifficulty }}

} @if (scene.enemies?.trim() || linkedEnemies.length > 0) {

🐲 {{ 'sceneView.enemiesSectionTitle' | translate }}

@if (linkedEnemies.length > 0) {
@for (e of linkedEnemies; track e.id) { {{ enemyLabel(e) }} }
} @if (scene.enemies?.trim()) {

{{ scene.enemies }}

}
} } @if (scene.gmSecretNotes?.trim()) {

🔒 {{ 'sceneView.gmNotesSectionTitle' | translate }}

{{ scene.gmSecretNotes }}

} @if (loreId && (scene.relatedPageIds?.length ?? 0) > 0) {

🔗 {{ 'sceneView.loreSectionTitle' | translate }}

@for (relId of scene.relatedPageIds; track relId) { {{ titleOfRelated(relId) }} }
} @if ((scene.rooms?.length ?? 0) > 0) {

🏰 {{ 'sceneView.roomsSectionTitle' | translate }}

@for (r of scene.rooms; track r; let i = $index) {
#{{ i + 1 }} {{ r.name }} @if (r.floor !== null && r.floor !== undefined) { {{ 'sceneView.roomFloor' | translate:{ floor: r.floor } }} }
@if (r.description?.trim()) {

{{ r.description }}

}
@if (r.enemies?.trim() || roomLinkedEnemies(r).length > 0) {
{{ 'sceneView.roomEnemies' | translate }} @if (roomLinkedEnemies(r).length > 0) {
@for (e of roomLinkedEnemies(r); track e.id) { {{ enemyLabel(e) }} }
} @if (r.enemies?.trim()) {

{{ r.enemies }}

}
} @if (r.loot?.trim()) {
{{ 'sceneView.roomLoot' | translate }}

{{ r.loot }}

} @if (r.traps?.trim()) {
{{ 'sceneView.roomTraps' | translate }}

{{ r.traps }}

} @if (r.gmNotes?.trim()) {
{{ 'sceneView.roomGmNotes' | translate }}

{{ r.gmNotes }}

}
@if ((r.branches?.length ?? 0) > 0) {
{{ 'sceneView.roomExits' | translate }}
    @for (b of r.branches; track b) {
  • {{ b.label }} → {{ roomNameById(scene, b.targetRoomId) }} @if (b.condition?.trim()) { {{ 'sceneView.roomExitCondition' | translate:{ condition: b.condition } }} }
  • }
}
}
}
}