From be87f8f3a7168e5ae7423a1d44c66d8a863f625c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 31 Dec 2014 20:24:26 +0300 Subject: hercules: tmw: fix wrong element fields in mob_db. --- hercules/code/server/tmw/mobdb.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hercules/code/server/tmw') 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] + ",", -- cgit v1.2.3-70-g09d2