summaryrefslogtreecommitdiff
path: root/tmx_converter.py
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-02 17:02:28 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-02 17:02:28 -0400
commitb35201e3187660c65cb6c47ae086cecf683f377d (patch)
tree8d41f8ffbf9b73d852fca144a38616d912f753b1 /tmx_converter.py
parent87c48200ec920eee107c2861cca30cbcf058d903 (diff)
downloadtools-b35201e3187660c65cb6c47ae086cecf683f377d.tar.gz
tools-b35201e3187660c65cb6c47ae086cecf683f377d.tar.bz2
tools-b35201e3187660c65cb6c47ae086cecf683f377d.tar.xz
tools-b35201e3187660c65cb6c47ae086cecf683f377d.zip
npc -1 => 32767
Diffstat (limited to 'tmx_converter.py')
-rwxr-xr-xtmx_converter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmx_converter.py b/tmx_converter.py
index 121264e..676a2fe 100755
--- a/tmx_converter.py
+++ b/tmx_converter.py
@@ -296,7 +296,7 @@ class ContentHandler(xml.sax.ContentHandler):
self.state = State.FINAL
def endDocument(self):
- self.mobs.write('\n\n%s,0,0,0|script|Mob%s|-1\n{\n end;\n' % (self.base, self.base))
+ self.mobs.write('\n\n%s,0,0,0|script|Mob%s|32767\n{\n end;\n' % (self.base, self.base))
for mob_id in sorted(self.mob_ids):
self.mobs.write('\nOn%d:\n set @mobID, %d;\n callfunc "MobPoints";\n end;\n' % (mob_id, mob_id))
self.mobs.write('}\n')