From: Ant Zucaro Date: Sat, 13 Dec 2014 03:39:27 +0000 (-0500) Subject: Add a dict to map from old weapon names to new. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7b76058205e1f085e9bfe5aa6d7e5dec6cf3f80;p=xonotic%2Fxonstat.git Add a dict to map from old weapon names to new. --- diff --git a/xonstat/util.py b/xonstat/util.py index 4f4581b..44933e7 100644 --- a/xonstat/util.py +++ b/xonstat/util.py @@ -13,6 +13,17 @@ from xonstat.d0_blind_id import d0_blind_id_verify log = logging.getLogger(__name__) +# Map of old weapons codes to new ones +weapon_map = { + "grenadelauncher": "mortar", + "laser": "blaster", + "minstanex": "vaporizer", + "nex": "vortex", + "rocketlauncher": "devastator", + "uzi": "machinegun", +} + + # Map of special chars to ascii from Darkplace's console.c. _qfont_ascii_table = [ '\0', '#', '#', '#', '#', '.', '#', '#',