mud/src/mudlib/combat
Jared Miller f5646589b5
Migrate look to use player.location (Zone)
- Removed world module-level variable from look.py
- look.cmd_look() now uses player.location.get_viewport() instead of world.get_viewport()
- look.cmd_look() uses zone.contents_near() to find nearby entities instead of iterating global players/mobs lists
- Wrapping calculations use zone.width/height/toroidal instead of world properties
- Added type check for player.location being a Zone instance
- Removed look.world injection from server.py
- Updated all tests to remove look.world injection
- spawn_mob() and combat commands also migrated to use Zone (player.location)
- Removed orphaned code from test_mob_ai.py and test_variant_prefix.py
2026-02-11 19:36:46 -05:00
..
__init__.py Add data-driven combat system with TOML move definitions 2026-02-07 21:16:12 -05:00
commands.py Migrate look to use player.location (Zone) 2026-02-11 19:36:46 -05:00
encounter.py Fix variant defense mode and test cleanup 2026-02-08 12:28:17 -05:00
engine.py Add spawn command and wire mobs into server 2026-02-09 11:54:29 -05:00
moves.py Add description field to CombatMove dataclass 2026-02-08 14:32:51 -05:00