From 243f612b787142780a8ac072ba775edbe2fec353 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 12 Nov 2022 18:00:11 -0300 Subject: Uniformity: ea_ prefix is now invalid --- tmx_converter.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tmx_converter.py') 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): -- cgit v1.2.3-70-g09d2