summaryrefslogtreecommitdiff
path: root/hercules/code/server
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-02-18 22:08:10 -0600
committerwushin <pasekei@gmail.com>2015-02-18 22:08:10 -0600
commit57a76c737b207c83cc0ef597ba470511acf2462e (patch)
tree591d4160159bcf60b239c5d26948908d6077cdfb /hercules/code/server
parentf158506f009ded0dfa695a4c7eb6181f9ea09066 (diff)
downloadevol-tools-57a76c737b207c83cc0ef597ba470511acf2462e.tar.gz
evol-tools-57a76c737b207c83cc0ef597ba470511acf2462e.tar.bz2
evol-tools-57a76c737b207c83cc0ef597ba470511acf2462e.tar.xz
evol-tools-57a76c737b207c83cc0ef597ba470511acf2462e.zip
Hercules: tmw convertor: remove extra blank script lines
Diffstat (limited to 'hercules/code/server')
-rw-r--r--hercules/code/server/tmw/itemdb.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/hercules/code/server/tmw/itemdb.py b/hercules/code/server/tmw/itemdb.py
index c27a06c..596d31a 100644
--- a/hercules/code/server/tmw/itemdb.py
+++ b/hercules/code/server/tmw/itemdb.py
@@ -100,12 +100,14 @@ def convertItemDb():
if len(UseScript) > 1:
writeStartScript(w, "Script")
for uline in UseScript:
- w.write(" {0};\n".format(uline))
+ if len(uline) > 0:
+ w.write(" {0};\n".format(uline))
writeEndScript(w)
if len(EquipScript) > 1:
writeStartScript(w, "OnEquipScript")
for eline in EquipScript:
- w.write(" {0};\n".format(eline))
+ if len(eline) > 0:
+ w.write(" {0};\n".format(eline))
writeEndScript(w)
w.write("},\n")