From 4ed1fa1010fd60dd024162040e6266bc26fc7bc3 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Sun, 31 May 2026 23:08:42 +0200 Subject: [PATCH] feat(content): dark dungeon needs the lit lamp Co-Authored-By: Claude Opus 4.8 (1M context) --- Semesterprojekt/docs/enhancement-ideas.md | 4 ++++ Semesterprojekt/src/main/resources/world/items.yaml | 1 + Semesterprojekt/src/main/resources/world/rooms.yaml | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Semesterprojekt/docs/enhancement-ideas.md b/Semesterprojekt/docs/enhancement-ideas.md index c404a7e..883c3b7 100644 --- a/Semesterprojekt/docs/enhancement-ideas.md +++ b/Semesterprojekt/docs/enhancement-ideas.md @@ -122,6 +122,10 @@ des Bogens; einzelne Teilziele schalten je den nächsten Bereich frei. Hebel/Ventile setzen Flags und öffnen Bereiche. 3. **Licht & Dunkelheit** – dunkle Räume brauchen eine brennende Lichtquelle, sonst keine Sicht auf Exits/Items (Atmosphäre, einfach umzusetzen). + > ✅ Umgesetzt (Branch `feature/light-darkness`): `Room.dark` + `Item.light`, + > `Light`-Helper, Gating in go/look/take/examine (Modell B: kein Eintritt ohne + > Licht), HUD-Licht verdrahtet. Demo: dunkler Dungeon braucht die brennende + > Lampe für den Generator. 4. **Item-Kombination** – z.B. `match + candle → lit candle`. Achtung: v1.0 hat bewusst argloses `use X` ohne Targets gewählt → Command-Grammatik muss erweitert werden (jetzt erlaubt, da über MVP hinaus). diff --git a/Semesterprojekt/src/main/resources/world/items.yaml b/Semesterprojekt/src/main/resources/world/items.yaml index 8db6c63..1320cdb 100644 --- a/Semesterprojekt/src/main/resources/world/items.yaml +++ b/Semesterprojekt/src/main/resources/world/items.yaml @@ -10,6 +10,7 @@ name: Oil Lamp description: An old oil lamp, heavy with fuel. initialState: false + light: true onText: The lamp flares to life, casting a warm glow. offText: You snuff out the lamp. diff --git a/Semesterprojekt/src/main/resources/world/rooms.yaml b/Semesterprojekt/src/main/resources/world/rooms.yaml index 0fb43ef..dd9226c 100644 --- a/Semesterprojekt/src/main/resources/world/rooms.yaml +++ b/Semesterprojekt/src/main/resources/world/rooms.yaml @@ -54,7 +54,8 @@ - id: dungeon name: Dungeon description: | - A dark, damp room. A rusty generator squats in the corner. + A cramped stone room, black as pitch. A rusty generator squats in the corner. + dark: true exits: north: kitchen items: [generator]