mud/content/mobs/librarian.toml
Jared Miller 4d44c4aadd
Add librarian NPC with integration tests
Create librarian mob template as a non-combatant NPC with:
- dialogue tree linking (npc_name field)
- time-based schedule (working 7-21, idle otherwise)
- empty moves list (cannot fight)

Wire dialogue tree loading into server startup to load from content/dialogue/.

Add npc_name field to MobTemplate and spawn_mob to preserve dialogue tree links.

Integration tests verify:
- spawning from template preserves npc_name and schedule
- full conversation flow (start, advance, end)
- converse state blocks movement
- schedule transitions change behavior state
- working state blocks movement
- patrol behavior follows waypoints
2026-02-14 14:31:39 -05:00

15 lines
277 B
TOML

name = "the librarian"
description = "a studious figure in a worn cardigan, carefully organizing books on the shelves"
pl = 50.0
stamina = 50.0
max_stamina = 50.0
moves = []
npc_name = "librarian"
[[schedule]]
hour = 7
state = "working"
[[schedule]]
hour = 21
state = "idle"