mud/src/mudlib
Jared Miller 0f7404cb12
Fix prefix matching for combat move variants
The variant handler now supports prefix matching for directional variants.
This allows 'pa hi' to match 'parry high', 'pa lo' to match 'parry low', etc.

Implementation:
- First tries exact match on variant key
- Falls back to prefix matching if no exact match
- Returns unique match if exactly one variant starts with the prefix
- Shows disambiguation message if multiple variants match
- Shows error with valid options if no variants match

Tests cover exact match, prefix match, ambiguous prefix, no match,
single-char prefix, case-insensitivity, and preservation of target args.
2026-02-08 14:41:40 -05:00
..
combat Fix prefix matching for combat move variants 2026-02-08 14:41:40 -05:00
commands Add description field to CombatMove dataclass 2026-02-08 14:32:51 -05:00
render Wire client capabilities into Player & terrain 2026-02-07 22:44:45 -05:00
store Add PlayerData TypedDict to fix type errors 2026-02-07 22:13:27 -05:00
world Add world cache to speedup startup 2026-02-07 15:00:07 -05:00
__init__.py Add first generation 2026-02-07 09:45:48 -05:00
__main__.py Add debug logs to view negotiations 2026-02-07 10:32:11 -05:00
caps.py Add MTTS capability parsing module with client color detection 2026-02-07 22:44:23 -05:00
content.py Add TOML content loader for declarative command definitions 2026-02-07 20:27:29 -05:00
editor.py Fix editor search/replace parsing, dirty flag, and cursor tracking 2026-02-07 23:06:47 -05:00
effects.py Add fly command with cloud trail effects 2026-02-07 14:48:42 -05:00
entity.py Add defense commitment lock and defense-everywhere support 2026-02-08 12:28:17 -05:00
player.py Add editor mode shell integration and edit command 2026-02-07 22:59:37 -05:00
server.py Add reload command for hot-reloading TOML content 2026-02-08 14:32:51 -05:00