This commit is contained in:
xbl
2025-12-23 17:11:27 +01:00
parent c1e5a28b41
commit fbc6b596e2
3 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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)

2
ui.py
View File

@ -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()