From fbc6b596e211d05bef6dc134c51b9ae3c9769b53 Mon Sep 17 00:00:00 2001 From: xbl Date: Tue, 23 Dec 2025 17:11:27 +0100 Subject: [PATCH] colorz --- config.py | 14 +++++++------- parser.py | 2 +- ui.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config.py b/config.py index 2a2ab4b..8fcdb8d 100644 --- a/config.py +++ b/config.py @@ -3,7 +3,7 @@ Configuration and constants for QLPyCon """ -VERSION = "0.8.0" +VERSION = "0.8.1" # Network defaults DEFAULT_HOST = 'tcp://127.0.0.1:27961' @@ -70,12 +70,12 @@ WEAPON_KILL_NAMES = { # Death messages DEATH_MESSAGES = { - 'FALLING': "%s%s ^7cratered.", - 'HURT': "%s%s ^7was in the wrong place.", - 'LAVA': "%s%s ^7does a backflip into the lava.", - 'WATER': "%s%s ^7sank like a rock.", - 'SLIME': "%s%s ^7melted.", - 'CRUSH': "%s%s ^7was crushed." + 'FALLING': "%s^0%s^9 ^7cratered.", + 'HURT': "%s^0%s^9 ^7was in the wrong place.", + 'LAVA': "%s^0%s^9 ^7does a backflip into the lava.", + 'WATER': "%s^0%s^9 ^7sank like a rock.", + 'SLIME': "%s^0%s^9 ^7melted.", + 'CRUSH': "%s^0%s^9 ^7was crushed." } # Powerup names and colors diff --git a/parser.py b/parser.py index 7eae41f..ce54669 100644 --- a/parser.py +++ b/parser.py @@ -149,7 +149,7 @@ class EventParser: # Environmental death (no killer) if 'KILLER' not in data or not data['KILLER']: mod = data.get('MOD', 'UNKNOWN') - msg_template = DEATH_MESSAGES.get(mod, "^0%s%s^9 ^1DIED FROM %s^7") + msg_template = DEATH_MESSAGES.get(mod, "%s^0%s^9 ^1DIED FROM %s^7") if mod in DEATH_MESSAGES: msg = msg_template % (victim_prefix, victim_name) diff --git a/ui.py b/ui.py index 6749cfa..e82e4e7 100644 --- a/ui.py +++ b/ui.py @@ -255,7 +255,7 @@ class UIManager: self.info_window.addstr("\n\n") # Separator - separator = "^6" + "═" * (max_x - 1) + "^7" + separator = "^7" + "═" * (max_x - 1) + "^7" print_colored(self.info_window, separator, 0) self.info_window.refresh()