summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2018-10-07 13:58:14 +0530
committerDastgir <dastgirp@gmail.com>2018-10-07 13:58:14 +0530
commit4390ad0d55be30eae0d70813cbc471d76539f2fa (patch)
tree3dbe702894ade39ca1504e449141f2e0d5d1c9d7 /tools
parentd9b3b016e2bfb0b70a4e292f1e73f7c2b94767aa (diff)
downloadhercules-4390ad0d55be30eae0d70813cbc471d76539f2fa.tar.gz
hercules-4390ad0d55be30eae0d70813cbc471d76539f2fa.tar.bz2
hercules-4390ad0d55be30eae0d70813cbc471d76539f2fa.tar.xz
hercules-4390ad0d55be30eae0d70813cbc471d76539f2fa.zip
Python: Explicitely truncate value to int
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mobdbconverter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mobdbconverter.py b/tools/mobdbconverter.py
index 78047aed9..525952976 100755
--- a/tools/mobdbconverter.py
+++ b/tools/mobdbconverter.py
@@ -188,7 +188,7 @@ def convertFile(inFile, itemDb):
printField("ChaseRange", fields[21])
printField("Size", fields[22])
printField("Race", fields[23])
- print("\tElement: ({0}, {1})".format(int(fields[24]) % 10, int(fields[24]) / 20));
+ print("\tElement: ({0}, {1})".format(int(fields[24]) % 10, int(int(fields[24]) / 20)));
mode = int(fields[25], 0)
if mode != 0:
startGroup("Mode")