summaryrefslogtreecommitdiff
path: root/hercules
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-22 21:16:16 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-22 21:16:16 -0300
commiteff7882787bf064c4b90583507922505130fc3f0 (patch)
tree4600405c8ae6f0dda5730f181f9fca2550820b71 /hercules
parent162fdafed39dc90195ed788553c6485fffc25975 (diff)
downloadtools-eff7882787bf064c4b90583507922505130fc3f0.tar.gz
tools-eff7882787bf064c4b90583507922505130fc3f0.tar.bz2
tools-eff7882787bf064c4b90583507922505130fc3f0.tar.xz
tools-eff7882787bf064c4b90583507922505130fc3f0.zip
Deprecate _savepoints.txt in favor of _config.txt
Diffstat (limited to 'hercules')
-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))