summaryrefslogtreecommitdiff
path: root/tmx_converter.py
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-11-05 07:38:16 -0600
committerwushin <pasekei@gmail.com>2014-11-05 07:38:16 -0600
commit0eeec6594246134efc7932567c86f75079e98150 (patch)
treeec19d9f57e7b9d40fd2ce1b4dea3212ffbfb399d /tmx_converter.py
parentc94b1d8a4978db9b42826d22bed254c4f9170cfb (diff)
downloadtools-0eeec6594246134efc7932567c86f75079e98150.tar.gz
tools-0eeec6594246134efc7932567c86f75079e98150.tar.bz2
tools-0eeec6594246134efc7932567c86f75079e98150.tar.xz
tools-0eeec6594246134efc7932567c86f75079e98150.zip
Add ms as the default for delays
Remove trailing comma that breaks server
Diffstat (limited to 'tmx_converter.py')
-rwxr-xr-xtmx_converter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmx_converter.py b/tmx_converter.py
index 802f9eb..97a1041 100755
--- a/tmx_converter.py
+++ b/tmx_converter.py
@@ -263,7 +263,7 @@ class ContentHandler(xml.sax.ContentHandler):
'%s.gat,%d,%d,%d,%d' % (self.base, obj.x, obj.y, obj.w, obj.h),
'monster',
obj.name,
- '%d,%d,%d,%d,Mob%s::On%d\n' % (mob_id, obj.max_beings, obj.ea_spawn, obj.ea_death, self.base, mob_id),
+ '%d,%d,%dms,%dms,Mob%s::On%d\n' % (mob_id, obj.max_beings, obj.ea_spawn, obj.ea_death, self.base, mob_id),
])
)
elif isinstance(obj, Warp):
@@ -305,7 +305,7 @@ class ContentHandler(xml.sax.ContentHandler):
self.state = State.FINAL
def endDocument(self):
- self.mobs.write('\n\n%s.gat,0,0,0|script|Mob%s|-1,\n{\n end;\n' % (self.base, self.base))
+ self.mobs.write('\n\n%s.gat,0,0,0|script|Mob%s|-1\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')