summaryrefslogtreecommitdiff
path: root/hercules
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-31 20:24:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-31 20:24:26 +0300
commitbe87f8f3a7168e5ae7423a1d44c66d8a863f625c (patch)
tree193f41237bc0d5090e91fb933f2bffa70f276afa /hercules
parent2c3a54f103360d954c6da30e40920c357063100e (diff)
downloadevol-tools-be87f8f3a7168e5ae7423a1d44c66d8a863f625c.tar.gz
evol-tools-be87f8f3a7168e5ae7423a1d44c66d8a863f625c.tar.bz2
evol-tools-be87f8f3a7168e5ae7423a1d44c66d8a863f625c.tar.xz
evol-tools-be87f8f3a7168e5ae7423a1d44c66d8a863f625c.zip
hercules: tmw: fix wrong element fields in mob_db.
Diffstat (limited to 'hercules')
-rw-r--r--hercules/code/server/tmw/mobdb.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/hercules/code/server/tmw/mobdb.py b/hercules/code/server/tmw/mobdb.py
index ec83e14..396283c 100644
--- a/hercules/code/server/tmw/mobdb.py
+++ b/hercules/code/server/tmw/mobdb.py
@@ -28,6 +28,13 @@ def convertMobDb():
rows = fieldsSplit.split(line)
for f in xrange(0, len(rows)):
rows[f] = rows[f].strip()
+ try:
+ val = int(rows[23])
+ if val < 20:
+ rows[23] = "20"
+ except:
+ None
+
w.write("{0:<5} {1:<15} {2:<16} {3:<16} {4:<5} {5:<5} {6:<5} "
"{7:<5} {8:<5} {9:<7} {10:<5} {11:<5} {12:<5} {13:<5} "
"{14:<5} {15:<5} {16:<5} {17:<5} {18:<5} {19:<5} {20:<7}"
@@ -61,8 +68,7 @@ def convertMobDb():
rows[20] + ",",
rows[21] + ",",
rows[22] + ",",
- #rows[23] + ",",
- "0,",
+ rows[23] + ",",
rows[24] + ",",
rows[25] + ",",
rows[26] + ",",