mud/tests
Jared Miller a4c9f31056
Cancel power-up tasks when combat starts
When combat begins, any active power-up task on either the attacker
or defender should be cancelled to prevent background power changes
during combat. This ensures players can't continue charging while
fighting.

The fix checks both entities for a _power_task attribute and cancels
it if present, then clears the reference.
2026-02-14 01:00:37 -05:00
..
__init__.py Add TOML verb support for thing templates 2026-02-11 21:47:33 -05:00
test_ambient_messages.py Add ambient message support to zones 2026-02-11 22:38:14 -05:00
test_ansi.py Wire client capabilities into Player & terrain 2026-02-07 22:44:45 -05:00
test_caps.py Add MTTS capability parsing module with client color detection 2026-02-07 22:44:23 -05:00
test_collision_detection.py Add collision detection tests 2026-02-08 13:32:49 -05:00
test_colors.py Add color markup engine for prompt templates 2026-02-13 22:48:59 -05:00
test_combat_commands.py Convert combat resolution to POV templates 2026-02-13 23:21:52 -05:00
test_combat_encounter.py Convert combat resolution to POV templates 2026-02-13 23:21:52 -05:00
test_combat_engine.py Convert combat resolution to POV templates 2026-02-13 23:21:52 -05:00
test_combat_moves.py Update tests for alias removal 2026-02-08 13:39:58 -05:00
test_commands.py Refactor look command to use structured room display 2026-02-13 22:20:48 -05:00
test_commands_list.py Convert combat resolution to POV templates 2026-02-13 23:21:52 -05:00
test_container.py Add Container class with capacity and open/closed state 2026-02-11 20:38:40 -05:00
test_container_display.py Show container state in look and inventory display 2026-02-11 20:58:55 -05:00
test_container_templates.py Add container support to thing template loader 2026-02-11 20:58:55 -05:00
test_content_loader.py Add TOML content loader for declarative command definitions 2026-02-07 20:27:29 -05:00
test_editor.py Fix editor search/replace parsing, dirty flag, and cursor tracking 2026-02-07 23:06:47 -05:00
test_editor_integration.py Wire edit command to open combat TOML files 2026-02-08 12:44:56 -05:00
test_effects.py Add fly command with cloud trail effects 2026-02-07 14:48:42 -05:00
test_embedded_if.py Offer GMCP/MSDP during connection and guard tick sends 2026-02-12 15:58:54 -05:00
test_enter_portal.py Add enter command for portal zone transitions 2026-02-11 20:58:55 -05:00
test_entity.py Add defense commitment lock and defense-everywhere support 2026-02-08 12:28:17 -05:00
test_entity_posture.py Add posture property to Entity for room display 2026-02-13 22:06:18 -05:00
test_examine.py Add examine command for object inspection 2026-02-11 21:47:33 -05:00
test_fly.py Migrate fly to use player.location (Zone) 2026-02-11 19:33:15 -05:00
test_game_compatibility.py Add pytest regression harness for z-machine game compatibility 2026-02-10 17:10:29 -05:00
test_get_drop.py Add inventory persistence to player saves 2026-02-11 20:29:58 -05:00
test_gmcp.py Dedupe MSDP vitals to avoid spamming idle clients 2026-02-12 16:31:17 -05:00
test_help.py Add client command to show protocol and terminal info 2026-02-12 15:58:54 -05:00
test_help_command.py Implement standalone help command 2026-02-08 13:33:46 -05:00
test_highlight.py Wire client capabilities into Player & terrain 2026-02-07 22:44:45 -05:00
test_hub_zone.py Fix portal type narrowing in zone tests 2026-02-11 23:17:50 -05:00
test_if_mode.py Fix line-too-long lint errors in IF mode tests 2026-02-09 16:10:29 -05:00
test_if_session.py Strip dfrotz prompt even without preceding newline 2026-02-09 17:55:14 -05:00
test_if_spectator.py Clean up global state, migrate broadcast_to_spectators to Zone 2026-02-11 19:42:12 -05:00
test_import.py Add first generation 2026-02-07 09:45:48 -05:00
test_inventory.py Add inventory command with alias "i" 2026-02-11 20:01:05 -05:00
test_inventory_persistence.py Add test for duplicate item persistence 2026-02-11 20:29:59 -05:00
test_key_unlock.py Add key-based unlock as first verb interaction 2026-02-11 21:47:33 -05:00
test_login_flow.py Add login and registration flow with server integration 2026-02-07 21:42:12 -05:00
test_look_command.py Refactor look command to use structured room display 2026-02-13 22:20:48 -05:00
test_mob_ai.py Convert combat resolution to POV templates 2026-02-13 23:21:52 -05:00
test_mob_spawns.py Add per-zone mob spawn rules 2026-02-11 22:38:14 -05:00
test_mobs.py Migrate look to use player.location (Zone) 2026-02-11 19:36:46 -05:00
test_object.py Add Object base class with containment primitives 2026-02-11 18:40:31 -05:00
test_open_close.py Add open and close commands for containers 2026-02-11 20:58:55 -05:00
test_paint_mode.py Offer GMCP/MSDP during connection and guard tick sends 2026-02-12 15:58:54 -05:00
test_persistence.py Add save on logout and disconnect 2026-02-07 21:42:16 -05:00
test_play_command.py Clean up global state, migrate broadcast_to_spectators to Zone 2026-02-11 19:42:12 -05:00
test_player_caps.py Wire client capabilities into Player & terrain 2026-02-07 22:44:45 -05:00
test_portal.py Add Portal class with target zone and coordinates 2026-02-11 20:38:47 -05:00
test_portal_autotrigger.py Add auto-trigger portal on movement 2026-02-11 22:38:14 -05:00
test_portal_display.py Refactor look command to use structured room display 2026-02-13 22:20:48 -05:00
test_pov.py Fix operator precedence in POV smart conjugation 2026-02-14 01:00:37 -05:00
test_power.py Cancel power-up tasks when combat starts 2026-02-14 01:00:37 -05:00
test_prefix_matching.py Add test for alias exact match over prefix 2026-02-08 13:48:32 -05:00
test_prompt.py Wire combat move and state into prompt variables 2026-02-13 23:21:53 -05:00
test_prompt_command.py Add prompt command for customization 2026-02-13 22:48:59 -05:00
test_put_take.py Add put and take-from commands for containers 2026-02-11 20:58:55 -05:00
test_quetzal_roundtrip.py Fix Quetzal Stks field mapping: return_pc to caller, varnum to frame 2026-02-10 12:39:40 -05:00
test_quetzal_stks.py Fix Quetzal Stks field mapping: return_pc to caller, varnum to frame 2026-02-10 12:39:40 -05:00
test_quetzal_writer.py Fix Quetzal Stks field mapping: return_pc to caller, varnum to frame 2026-02-10 12:39:40 -05:00
test_reload.py Add reload command for hot-reloading TOML content 2026-02-08 14:32:51 -05:00
test_rest.py Migrate movement to use player.location (Zone) 2026-02-11 19:28:27 -05:00
test_room_render.py Add render/room.py with structured room display functions 2026-02-13 22:20:48 -05:00
test_server.py Clean up global state, migrate broadcast_to_spectators to Zone 2026-02-11 19:42:12 -05:00
test_spawn_command.py Migrate look to use player.location (Zone) 2026-02-11 19:36:46 -05:00
test_stamina_cues.py Add visible stamina cue broadcasts 2026-02-13 23:21:53 -05:00
test_store.py Add zone_name to persistence schema 2026-02-11 19:33:23 -05:00
test_terrain.py Add world cache to speedup startup 2026-02-07 15:00:07 -05:00
test_thing.py Add inventory persistence to player saves 2026-02-11 20:29:58 -05:00
test_thing_templates.py Add Thing templates, TOML loading, and spawning 2026-02-11 20:01:15 -05:00
test_three_beat.py Convert combat resolution to POV templates 2026-02-13 23:21:52 -05:00
test_toml_verbs.py Add TOML verb support for thing templates 2026-02-11 21:47:33 -05:00
test_tutorial_zones.py Fix portal type narrowing in zone tests 2026-02-11 23:17:50 -05:00
test_two_way_portals.py Add enter command for portal zone transitions 2026-02-11 20:58:55 -05:00
test_use.py Add use command for verb-based interaction 2026-02-11 21:47:33 -05:00
test_variant_prefix.py Migrate look to use player.location (Zone) 2026-02-11 19:36:46 -05:00
test_verb_dispatch.py Add use command for verb-based interaction 2026-02-11 21:47:33 -05:00
test_verbs.py Add verb infrastructure on Object 2026-02-11 21:47:33 -05:00
test_zmachine_opcodes.py Wire op_restore to QuetzalParser and filesystem 2026-02-10 10:13:45 -05:00
test_zmachine_undo.py Add undo command support 2026-02-10 16:49:46 -05:00
test_zmemory_v8.py Relax version gates to accept V8 story files 2026-02-10 13:37:22 -05:00
test_zone.py Add spawn point support to zones 2026-02-11 22:00:06 -05:00
test_zone_export.py Fix portal type narrowing in zone tests 2026-02-11 23:17:50 -05:00
test_zone_loading.py Fix portal type narrowing in zone tests 2026-02-11 23:17:50 -05:00
test_zone_registry.py Add zone registry with register and lookup 2026-02-11 20:40:31 -05:00