From b82c490fd561292a4592d974a32a6df59e9f9d17 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 11 Apr 2019 20:37:16 +0000 Subject: Upgrade savepointparticle function so bedClic() is not needed. --- hercules/tmx_converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py index f9db092..3ac33c7 100755 --- a/hercules/tmx_converter.py +++ b/hercules/tmx_converter.py @@ -357,8 +357,8 @@ class ContentHandler(xml.sax.ContentHandler): obj_name = "%s_%s_%s" % (self.base, obj.x, obj.y) self.saves.write( SEPARATOR.join([ - '%s,%d,%d,0\tscript\t#save_%s\tNPC_SAVE_POINT,{\n' % (self.base, obj.x, obj.y, obj_name), - ' savepointparticle .map$, .x, .y, %s;\n close;\n\nOnInit:\n .distance = 2;\n .sex = G_OTHER;\n end;\n}\n' % (obj.inn), + '%s,%d,%d,0\tscript\t#save_%s\tNPC_SAVE_POINT,0,0,{\n' % (self.base, obj.x, obj.y, obj_name), + ' savepointparticle .map$, .x, .y, %s;\n close;\n\nOnInit:\n .distance = 2;\n .sex = G_OTHER;\n end;\n\nOnTouch:\n bedTouch();\n end;\n}\n' % (obj.inn), ]) ) self.save_cnt = True -- cgit v1.2.3-70-g09d2