From e7b76058205e1f085e9bfe5aa6d7e5dec6cf3f80 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Fri, 12 Dec 2014 22:39:27 -0500 Subject: [PATCH] Add a dict to map from old weapon names to new. --- xonstat/util.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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', '#', '#', '#', '#', '.', '#', '#', -- 2.39.2