summaryrefslogtreecommitdiff
path: root/hercules/code/server/questsdb.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-20 12:16:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-20 12:16:45 +0300
commit3e960b66d2b89cd915c79a2e6df5b3d73f588646 (patch)
tree4855ad68f52dbca51e39b808acbaf49e99a5b47c /hercules/code/server/questsdb.py
parent8057b15a1e32d160d0f7b639e76312355f606b0f (diff)
downloadevol-tools-3e960b66d2b89cd915c79a2e6df5b3d73f588646.tar.gz
evol-tools-3e960b66d2b89cd915c79a2e6df5b3d73f588646.tar.bz2
evol-tools-3e960b66d2b89cd915c79a2e6df5b3d73f588646.tar.xz
evol-tools-3e960b66d2b89cd915c79a2e6df5b3d73f588646.zip
hercules: start quest id from 0.
Diffstat (limited to 'hercules/code/server/questsdb.py')
-rw-r--r--hercules/code/server/questsdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hercules/code/server/questsdb.py b/hercules/code/server/questsdb.py
index c585b95..25b0303 100644
--- a/hercules/code/server/questsdb.py
+++ b/hercules/code/server/questsdb.py
@@ -18,7 +18,7 @@ def convertQuestsDb():
with open(dstFile, "w") as w:
tpl = readFile("templates/quest_db.tpl")
w.write(tpl)
- cnt = 1000
+ cnt = 0
for line in r:
if len(line) < 2 or line[0:2] == "//":
continue
@@ -33,6 +33,6 @@ def convertQuestsDb():
line = line[:idx]
w.write("{0},0,0,0,0,0,0,0,\"{1}\"\n".format(cnt, line))
- cnt = cnt + 1
quests[line] = cnt
+ cnt = cnt + 1
return quests