]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Add a dict to map from old weapon names to new.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 13 Dec 2014 03:39:27 +0000 (22:39 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 13 Dec 2014 03:39:27 +0000 (22:39 -0500)
xonstat/util.py

index 4f4581b55ad04a5db4e656070cf7766006832fb0..44933e7ce744c8eb07086f4ebedf4d9cd7a270d0 100644 (file)
@@ -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', '#',  '#',  '#',  '#',  '.',  '#',  '#',