From 1dbc3a1c685a5e68afea8782aa371c554e3d3e1c Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Sat, 14 Feb 2026 00:24:32 -0500 Subject: [PATCH] Replace magic number with DEATH_PL constant --- src/mudlib/commands/snapneck.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mudlib/commands/snapneck.py b/src/mudlib/commands/snapneck.py index cc39714..62a1be9 100644 --- a/src/mudlib/commands/snapneck.py +++ b/src/mudlib/commands/snapneck.py @@ -4,6 +4,8 @@ from mudlib.combat.engine import end_encounter, get_encounter from mudlib.commands import CommandDefinition, register from mudlib.player import Player, players +DEATH_PL = -100.0 + async def cmd_snap_neck(player: Player, args: str) -> None: """Snap the neck of an unconscious target. @@ -52,7 +54,7 @@ async def cmd_snap_neck(player: Player, args: str) -> None: return # Execute the finisher - target.pl = -100.0 # Instant death + target.pl = DEATH_PL # Send dramatic messages await player.send(f"You snap {target.name}'s neck!\r\n")