summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhercules/tmx_converter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py
index 6469aa9..a29da5f 100755
--- a/hercules/tmx_converter.py
+++ b/hercules/tmx_converter.py
@@ -64,7 +64,7 @@ MOB_DB_CONF = 'db/re/mob_db.conf'
MAP_CONF = 'conf/map/maps.conf'
MAP_DB_CONF = 'db/map_index.txt'
NPC_MOBS = '_mobs.txt'
-NPC_SAVES = '_savepoints.txt'
+NPC_CONFIG = '_config.txt'
NPC_WARPS = '_warps.txt'
NPC_IMPORTS = '_import.txt'
NPC_MASTER_IMPORTS = NPC_IMPORTS
@@ -393,7 +393,7 @@ class ContentHandler(xml.sax.ContentHandler):
if not self.mob_cnt:
os.remove(posixpath.join(main.this_map_npc_dir, NPC_MOBS))
if not self.save_cnt:
- os.remove(posixpath.join(main.this_map_npc_dir, NPC_SAVES))
+ os.remove(posixpath.join(main.this_map_npc_dir, NPC_CONFIG))
if not self.warp_cnt:
os.remove(posixpath.join(main.this_map_npc_dir, NPC_WARPS))
@@ -447,7 +447,7 @@ def main(argv):
os.path.isdir(main.this_map_npc_dir) or os.mkdir(main.this_map_npc_dir)
print('Converting %s' % (tmx))
with open(posixpath.join(main.this_map_npc_dir, NPC_MOBS), 'w') as mobs:
- with open(posixpath.join(main.this_map_npc_dir, NPC_SAVES), 'w') as saves:
+ with open(posixpath.join(main.this_map_npc_dir, NPC_CONFIG), 'w') as saves:
with open(posixpath.join(main.this_map_npc_dir, NPC_WARPS), 'w') as warps:
with open(posixpath.join(main.this_map_npc_dir, NPC_IMPORTS), 'w') as imports:
xml.sax.parse(tmx, ContentHandler(main.this_map_npc_dir, mobs, saves, warps, imports))