Commit graph

10 commits

Author SHA1 Message Date
d9739b4f09
Fix tintin aliases 2026-02-15 15:02:10 -05:00
9ee4ff050d
Add combat and defense aliases 2026-02-12 18:31:26 -05:00
bd5f83e890
Skip empty lines during name prompt and fix tintin send syntax
The server now skips spurious empty lines from client negotiation bytes
during the name prompt, only closing on actual connection loss. This
makes the login flow robust against clients that send IAC bytes with
trailing CRLF during negotiation.

Also fixed tintin++ CATCH handlers to use proper \} syntax matching the
documented examples.
2026-02-12 16:24:37 -05:00
7ba4ab90fb
Add MSDP status bar and protocol negotiation to mud.tin 2026-02-12 16:24:37 -05:00
bcf8ae28d1
Fix reconnect alias and add comments to mud.tin 2026-02-12 15:58:54 -05:00
224c1f0645
Add reconnect tintin command 2026-02-10 11:26:41 -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
f6686fe52c
Add tintin combat aliases
Adds single-key aliases for combat moves: pr/pl for punches, o for
sweep, r for roundhouse, f/v for parries, dr/dl for dodges.
2026-02-07 21:16:28 -05:00
9844749edd
Add fly command with cloud trail effects
fly <direction> moves the player 5 tiles, ignoring terrain. Leaves
a trail of bright white ~ clouds that fade after 2 seconds. Effects
system supports arbitrary timed visual overlays on the viewport.
TinTin aliases: fn/fs/fe/fw/fne/fnw/fse/fsw.
2026-02-07 14:48:42 -05:00
a83248b387 Add bare echoing telnet server 2026-02-07 10:05:34 -05:00