colorz
This commit is contained in:
14
config.py
14
config.py
@ -3,7 +3,7 @@
|
|||||||
Configuration and constants for QLPyCon
|
Configuration and constants for QLPyCon
|
||||||
"""
|
"""
|
||||||
|
|
||||||
VERSION = "0.8.0"
|
VERSION = "0.8.1"
|
||||||
|
|
||||||
# Network defaults
|
# Network defaults
|
||||||
DEFAULT_HOST = 'tcp://127.0.0.1:27961'
|
DEFAULT_HOST = 'tcp://127.0.0.1:27961'
|
||||||
@ -70,12 +70,12 @@ WEAPON_KILL_NAMES = {
|
|||||||
|
|
||||||
# Death messages
|
# Death messages
|
||||||
DEATH_MESSAGES = {
|
DEATH_MESSAGES = {
|
||||||
'FALLING': "%s%s ^7cratered.",
|
'FALLING': "%s^0%s^9 ^7cratered.",
|
||||||
'HURT': "%s%s ^7was in the wrong place.",
|
'HURT': "%s^0%s^9 ^7was in the wrong place.",
|
||||||
'LAVA': "%s%s ^7does a backflip into the lava.",
|
'LAVA': "%s^0%s^9 ^7does a backflip into the lava.",
|
||||||
'WATER': "%s%s ^7sank like a rock.",
|
'WATER': "%s^0%s^9 ^7sank like a rock.",
|
||||||
'SLIME': "%s%s ^7melted.",
|
'SLIME': "%s^0%s^9 ^7melted.",
|
||||||
'CRUSH': "%s%s ^7was crushed."
|
'CRUSH': "%s^0%s^9 ^7was crushed."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Powerup names and colors
|
# Powerup names and colors
|
||||||
|
|||||||
@ -149,7 +149,7 @@ class EventParser:
|
|||||||
# Environmental death (no killer)
|
# Environmental death (no killer)
|
||||||
if 'KILLER' not in data or not data['KILLER']:
|
if 'KILLER' not in data or not data['KILLER']:
|
||||||
mod = data.get('MOD', 'UNKNOWN')
|
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:
|
if mod in DEATH_MESSAGES:
|
||||||
msg = msg_template % (victim_prefix, victim_name)
|
msg = msg_template % (victim_prefix, victim_name)
|
||||||
|
|||||||
2
ui.py
2
ui.py
@ -255,7 +255,7 @@ class UIManager:
|
|||||||
self.info_window.addstr("\n\n")
|
self.info_window.addstr("\n\n")
|
||||||
|
|
||||||
# Separator
|
# Separator
|
||||||
separator = "^6" + "═" * (max_x - 1) + "^7"
|
separator = "^7" + "═" * (max_x - 1) + "^7"
|
||||||
print_colored(self.info_window, separator, 0)
|
print_colored(self.info_window, separator, 0)
|
||||||
|
|
||||||
self.info_window.refresh()
|
self.info_window.refresh()
|
||||||
|
|||||||
Reference in New Issue
Block a user