colorz
This commit is contained in:
14
config.py
14
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
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user