summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclient/dailylogin.py2
-rwxr-xr-xclient/minimap-dyecmd.py2
-rwxr-xr-xclient/minimap-render.py2
-rwxr-xr-xclient/weapons.py9
4 files changed, 8 insertions, 7 deletions
diff --git a/client/dailylogin.py b/client/dailylogin.py
index fc9296f..221ac49 100755
--- a/client/dailylogin.py
+++ b/client/dailylogin.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.7
+#!/usr/bin/env python3
# Setup
x=y=0
diff --git a/client/minimap-dyecmd.py b/client/minimap-dyecmd.py
index 8f3e0c7..28c35ee 100755
--- a/client/minimap-dyecmd.py
+++ b/client/minimap-dyecmd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#-*- coding:utf-8 -*-
import os
diff --git a/client/minimap-render.py b/client/minimap-render.py
index 716e9e3..7d11b42 100755
--- a/client/minimap-render.py
+++ b/client/minimap-render.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#-*- coding:utf-8 -*-
import sys
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