summaryrefslogtreecommitdiff
path: root/tmx_converter.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-11-12 18:00:11 -0300
committerJesusaves <cpntb1@ymail.com>2022-11-12 18:00:11 -0300
commit243f612b787142780a8ac072ba775edbe2fec353 (patch)
tree615f4c485ace948d91ca7944534116ddb1e83ea8 /tmx_converter.py
parentcacb8c677523dfb1e992530adbb4819ee6e3c5cc (diff)
downloadtools-243f612b787142780a8ac072ba775edbe2fec353.tar.gz
tools-243f612b787142780a8ac072ba775edbe2fec353.tar.bz2
tools-243f612b787142780a8ac072ba775edbe2fec353.tar.xz
tools-243f612b787142780a8ac072ba775edbe2fec353.zip
Uniformity: ea_ prefix is now invalid
Diffstat (limited to 'tmx_converter.py')
-rwxr-xr-xtmx_converter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tmx_converter.py b/tmx_converter.py
index 404d58d..07317c0 100755
--- a/tmx_converter.py
+++ b/tmx_converter.py
@@ -82,13 +82,13 @@ class Mob(Object):
__slots__ = (
'monster_id',
'max_beings',
- 'ea_spawn',
- 'ea_death',
+ 'spawn',
+ 'death',
) + other_spawn_fields
def __init__(self):
self.max_beings = 1
- self.ea_spawn = 0
- self.ea_death = 0
+ self.spawn = 0
+ self.death = 0
class Node(Object):
__slots__ = (
@@ -296,7 +296,7 @@ class ContentHandler(xml.sax.ContentHandler):
'%s,%d,%d,%d,%d' % (self.base, obj.x, obj.y, obj.w, obj.h),
'monster',
obj.name,
- '%d,%d,%dms,%dms\n' % (mob_id, obj.max_beings, obj.ea_spawn, obj.ea_death),
+ '%d,%d,%dms,%dms\n' % (mob_id, obj.max_beings, obj.spawn, obj.death),
])
)
elif isinstance(obj, Warp):