diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-02 21:34:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-02 21:34:11 +0300 |
commit | 9cfd6be15a6a805c34620df010bf2621e3fa3f41 (patch) | |
tree | 5aa4c97bc3ce42893fef2b64f46867d627a61cd0 | |
parent | 357ae6673aae16f4f8bbddf9c70d0f6c3fc389db (diff) | |
download | evol-tools-9cfd6be15a6a805c34620df010bf2621e3fa3f41.tar.gz evol-tools-9cfd6be15a6a805c34620df010bf2621e3fa3f41.tar.bz2 evol-tools-9cfd6be15a6a805c34620df010bf2621e3fa3f41.tar.xz evol-tools-9cfd6be15a6a805c34620df010bf2621e3fa3f41.zip |
hercules: fix range3 in tmw converter.
Also fix align for some columnts in mob_db.
-rw-r--r-- | hercules/code/server/tmw/mobdb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hercules/code/server/tmw/mobdb.py b/hercules/code/server/tmw/mobdb.py index 4c22a34..67b0f21 100644 --- a/hercules/code/server/tmw/mobdb.py +++ b/hercules/code/server/tmw/mobdb.py @@ -22,7 +22,7 @@ def convertMobDb(): for srcFile in getMobDbFile(srcDir): with open(srcDir + srcFile, "r") as r: for line in r: - if len(line) < 2: + if len(line) < 2 or line[:2] == "//": w.write(line) continue rows = fieldsSplit.split(line) @@ -65,8 +65,8 @@ def convertMobDb(): else: calc_exp = rows[6] - 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} " + w.write("{0:<5} {1:<23} {2:<23} {3:<23} {4:<5} {5:<6} {6:<3} " + "{7:<7} {8:<6} {9:<7} {10:<5} {11:<5} {12:<5} {13:<5} " "{14:<5} {15:<5} {16:<5} {17:<5} {18:<5} {19:<5} {20:<7}" " {21:<7} {22:<6} {23:<5} {24:<8} {25:<8} {26:<6} " "{27:<8} {28:<9} {29:<8} {30:<5} {31:<7} {32:<8} {33:<7}" @@ -95,7 +95,7 @@ def convertMobDb(): rows[17] + ",", rows[18] + ",", rows[19] + ",", - rows[20] + ",", + "10,", rows[21] + ",", rows[22] + ",", rows[23] + ",", |