summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-05-06 12:57:21 -0500
committerWushin <pasekei@gmail.com>2015-05-06 12:57:21 -0500
commita67f3867ada037efdd6a983e090f014b8ed24b88 (patch)
tree556c2dd6769b41c64025f6277bd725476ef217f8
parent2b168ab6b869de1dc257d8152da537d802dd7c36 (diff)
parentb35201e3187660c65cb6c47ae086cecf683f377d (diff)
downloadtools-a67f3867ada037efdd6a983e090f014b8ed24b88.tar.gz
tools-a67f3867ada037efdd6a983e090f014b8ed24b88.tar.bz2
tools-a67f3867ada037efdd6a983e090f014b8ed24b88.tar.xz
tools-a67f3867ada037efdd6a983e090f014b8ed24b88.zip
Merge pull request #15 from mekolat/32767
npc -1 => 32767
-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')