From eff7882787bf064c4b90583507922505130fc3f0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Jun 2020 21:16:16 -0300 Subject: Deprecate _savepoints.txt in favor of _config.txt --- hercules/tmx_converter.py | 6 +++--- 1 file 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)) -- cgit v1.2.3-70-g09d2