From ca9f36b82d7987546efd60acfaac22e3fd834f16 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 8 Jun 2021 19:42:36 +0100 Subject: Removed map customization This was added by mistake when the script was imported. --- tools/map.py | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'tools') diff --git a/tools/map.py b/tools/map.py index 53c98b7..368a41a 100755 --- a/tools/map.py +++ b/tools/map.py @@ -214,23 +214,6 @@ def main(): x = obj["x"] % (args.rw * tilewidth) y = obj["y"] % (args.rh * tileheight) - if name == "blocked": - if obj["width"] > obj["height"]: - if y == 0: - # up blocked - out[m][1] |= (1 << 4) - else: - # down blocked - out[m][1] |= (1 << 5) - else: - if x == 0: - # left blocked - out[m][1] |= (1 << 6) - else: - # tight blocked - out[m][1] |= (1 << 7) - continue - t = et_names.index(name) # MSB is direction @@ -266,22 +249,6 @@ def main(): y += special special //= tileheight - if name == "elevator": - try: - respawn = json.loads(get_property(obj, "respawn", "[]")) - if args.max_bytes: - for name in respawn: - check_bytes(name) - special = [et_names.index(et) for et in respawn] - assert(len(special) < 255) - except Exception as ex: - parser.error("Error parsing respawn: %s" % ex) - - # terminator - special.append(0xff) - # size - special = [len(special), ] + special - map_ents[m].extend([t, x, y]) if special is not None: if isinstance(special, (tuple, list)): -- cgit v1.2.3