Objective
Add a Blacksmith NPC in the starting village and allow the hero to interact with them.
This NPC will later serve as the first shop in the game.
Context
The village already includes a blacksmith_shop room.
We just need:
- an NPC object representing the Blacksmith
- a simple interaction when the hero chooses to talk to them
What to implement
When the player enters the Blacksmith room:
- UI offers: "Talk" option if an NPC is present
- Talking to the NPC prints a simple text like:
- "Welcome! Looking to buy some gear?"
Acceptance criteria
- Blacksmith NPC is visible in the room display (Ex: “NPC: Blacksmith”)
- Player can choose Talk
- A greeting message is displayed
- No shop logic yet
Hints
- Interaction should stay in the Exploring state
- NPC logic can be centralized in ui or world modules for now
- JSON → code mapping already exists for rooms, you can extend it
Objective
Add a Blacksmith NPC in the starting village and allow the hero to interact with them.
This NPC will later serve as the first shop in the game.
Context
The village already includes a
blacksmith_shoproom.We just need:
What to implement
Create a minimal
NPCclassname: strdialogue: list[str]or a singlegreeting: strUpdate the village JSON so the
blacksmith_shoproom contains:When the player enters the Blacksmith room:
Acceptance criteria
Hints