diff options
Diffstat (limited to 'client/weapons.py')
-rwxr-xr-x | client/weapons.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/weapons.py b/client/weapons.py index 8b4d663..2f689a6 100755 --- a/client/weapons.py +++ b/client/weapons.py @@ -1,4 +1,5 @@ -#!/usr/bin/python2.7 +#!/usr/bin/env python3 + import copy TYPE_NUL=0 TYPE_WPN=1 @@ -30,7 +31,7 @@ def main(a, typ=TYPE_NUL): try: rid=int(gid) except: - print "[CRITICAL] Invalid item ID format: " + l + print("[CRITICAL] Invalid item ID format: " + l) exit(1) ctx=Item(rid, typ) @@ -40,7 +41,7 @@ def main(a, typ=TYPE_NUL): try: ctx.lvl=int(gid) except: - print "[CRITICAL] Invalid item level format: " + l + print("[CRITICAL] Invalid item level format: " + l) ctx.lvl=0 if "\tattack-range=" in l or " attack-range=" in l: @@ -51,7 +52,7 @@ def main(a, typ=TYPE_NUL): else: ctx.type=TYPE_WPN except: - print "[CRITICAL] Invalid item range format: " + l + print("[CRITICAL] Invalid item range format: " + l) ctx.type=TYPE_NUL ctx.lvl=0+rid |