Commit graph

7 commits

Author SHA1 Message Date
47ef606e7f
Update documents with new IF system 2026-02-09 17:59:47 -05:00
6344c09275
Restructure combat moves: single-word commands with variant args
The DREAMBOOK always described "punch right/left [target]" as one command
with a direction argument, but the implementation had separate TOML files
and multi-word command names that the dispatcher couldn't reach (it only
matches the first word). Aliases like "pr" also couldn't pass targets
because the shared handler tried to re-derive the move from args.

Changes:
- Merge punch_left/right, dodge_left/right, parry_high/low into single
  TOML files with [variants] sections
- Add command/variant fields to CombatMove for tracking move families
- load_move() now returns list[CombatMove], expanding variants
- Handlers bound to moves via closures at registration time:
  variant handler for base commands (punch → parses direction from args),
  direct handler for aliases and simple moves (pr → move already known)
- Core logic in do_attack/do_defend takes a resolved move
- Combat doc rewritten as rst with architecture details
- Simplify mud.tin aliases (pr/pl/etc are built-in MUD commands now)
2026-02-08 00:20:52 -05:00
91c57d89e1
Update CLAUDE.md to reflect current state
Fix typecheck reference (ty not pyright), add content/ directory to layout, expand
Architecture section with combat, persistence, editor, content loading, and entity model.
2026-02-07 23:51:37 -05:00
29983776f9
Update agent config with new notes 2026-02-07 14:48:24 -05:00
25bb565091
Move notes to docs/how, docs/why, docs/lessons
how/  - how things work (terrain generation, command system)
why/  - design philosophy (telnet-first, text worlds)
lessons/ - things we learned the hard way (charset vs mtts)

Removes notes/ — DAYDREAMING.txt became DREAMBOOK.md, charset-vs-mtts
expanded into docs/lessons/ with the connect_maxwait fix documented.
2026-02-07 13:31:02 -05:00
7f47124b02 Update agent config 2026-02-07 12:21:33 -05:00
482d0e5fa6 Add an agent config 2026-02-07 09:48:36 -05:00