diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-31 19:53:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-31 19:53:47 +0300 |
commit | 2c3a54f103360d954c6da30e40920c357063100e (patch) | |
tree | aa56b4b76e70d2f4c00fd055a7bdc6904174718e /hercules | |
parent | 832fae0992d7aa1cea19abd332fb3502f49578bf (diff) | |
download | evol-tools-2c3a54f103360d954c6da30e40920c357063100e.tar.gz evol-tools-2c3a54f103360d954c6da30e40920c357063100e.tar.bz2 evol-tools-2c3a54f103360d954c6da30e40920c357063100e.tar.xz evol-tools-2c3a54f103360d954c6da30e40920c357063100e.zip |
hercules: tmw: fix converting item_db.
Diffstat (limited to 'hercules')
-rw-r--r-- | hercules/code/server/tmw/itemdb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hercules/code/server/tmw/itemdb.py b/hercules/code/server/tmw/itemdb.py index 58e8d97..e5c15f8 100644 --- a/hercules/code/server/tmw/itemdb.py +++ b/hercules/code/server/tmw/itemdb.py @@ -25,11 +25,11 @@ def convertItemDb(): tpl = readFile("templates/item_db.tpl") with open(dstFile, "w") as w: + w.write(tpl) with open(constsFile, "a") as c: + c.write("// items\n"); for srcFile in getItemDbFile(srcDir): with open(srcDir + srcFile, "r") as r: - c.write("// items\n"); - w.write(tpl) for line in r: if len(line) < 2 or line[0] == "#" or line[0:2] == "//": continue @@ -89,5 +89,5 @@ def convertItemDb(): writeEndScript(w) w.write("},\n") - w.write(")\n") + w.write(")\n") return items |