csharpfritz / csharpfritz/MyFirstTextGame

Add 'drop' command to remove items from inventory

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
engine enhancement squad:banner
Lingua principale
C#
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Players can ake items but cannot drop them. A drop command would allow placing inventory items back into the current room.

**Acceptance criteria:**
- Add CommandType.Drop to the enum
- CommandParser recognizes drop
- GameEngine.HandleDrop() removes item from inventory, adds to current room's RoomItems
- Non-droppable items (if any) should be handled gracefully
- Output confirmation message in green

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.