diff options
author | Wushin <pasekei@gmail.com> | 2015-05-06 12:57:21 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-05-06 12:57:21 -0500 |
commit | a67f3867ada037efdd6a983e090f014b8ed24b88 (patch) | |
tree | 556c2dd6769b41c64025f6277bd725476ef217f8 | |
parent | 2b168ab6b869de1dc257d8152da537d802dd7c36 (diff) | |
parent | b35201e3187660c65cb6c47ae086cecf683f377d (diff) | |
download | tools-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-x | tmx_converter.py | 2 |
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') |