@if (scene) {

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

Scène

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

🗺️ Cartes & plans

}

📝 Description

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

{{ scene.description }}

} @else {

Non renseigné

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

📍 Lieu

{{ scene.location }}

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

Moment

{{ scene.timing }}

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

🌫️ Ambiance et atmosphère

{{ scene.atmosphere }}

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

📖 Narration pour les joueurs

{{ scene.playerNarration }}

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

🔀 Choix et conséquences

{{ scene.choicesConsequences }}

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

⚔️ Difficulté estimée

{{ scene.combatDifficulty }}

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

🐲 Ennemis et créatures

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

{{ scene.enemies }}

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

🔒 Notes et secrets du MJ

{{ scene.gmSecretNotes }}

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

🔗 Pages Lore associées

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

🏰 Pièces du lieu

@for (r of scene.rooms; track r; let i = $index) {
#{{ i + 1 }} {{ r.name }} @if (r.floor !== null && r.floor !== undefined) { Étage {{ r.floor }} }
@if (r.description?.trim()) {

{{ r.description }}

}
@if (r.enemies?.trim() || roomLinkedEnemies(r).length > 0) {
⚔️ Ennemis @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()) {
💰 Loot

{{ r.loot }}

} @if (r.traps?.trim()) {
⚠️ Pièges

{{ r.traps }}

} @if (r.gmNotes?.trim()) {
🔒 Notes MJ

{{ r.gmNotes }}

}
@if ((r.branches?.length ?? 0) > 0) {
→ Sorties
    @for (b of r.branches; track b) {
  • {{ b.label }} → {{ roomNameById(scene, b.targetRoomId) }} @if (b.condition?.trim()) { (si : {{ b.condition }}) }
  • }
}
}
}
}