diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-05 17:10:21 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-05 17:10:21 -0600 |
commit | 8626486876a828d8798dec21970254005f11b52a (patch) | |
tree | 84cbd4afd8512f5dd9305e88a1a3f26709b37860 /extras/pretty_map_headers.py | |
parent | 238a5e62aee049540f94677c663a87dfde7fea1f (diff) |
start using EVENT_DISP in object data output
hg-commit-id: bbc9b24dd8cc
Diffstat (limited to 'extras/pretty_map_headers.py')
-rw-r--r-- | extras/pretty_map_headers.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/extras/pretty_map_headers.py b/extras/pretty_map_headers.py index 82579ba2..527f8948 100644 --- a/extras/pretty_map_headers.py +++ b/extras/pretty_map_headers.py @@ -483,12 +483,15 @@ def object_data_pretty_printer(map_id): output += spacing + "; warp-to\n" output += "\n" - #TODO: use EVENT_DISP per sawakita for warp_to_id in object["warp_tos"]: warp_to = object["warp_tos"][warp_to_id] - - output += spacing + "dw $" + hex(int(warp_to["event_displacement"][1]))[2:] + hex(int(warp_to["event_displacement"][0]))[2:] + "\n" - output += spacing + "db $" + hex(int(warp_to["y"]))[2:] + ", $" + hex(int(warp_to["x"]))[2:] + "\n" + map_width = map["x"] + warp_to_y = hex(int(warp_to["y"]))[2:] + warp_to_x = hex(int(warp_to["x"]))[2:] + + output += spacing + "EVENT_DISP $" + map_width[2:] + ", $" + warp_to_y + ", $" + warp_to_x + "\n" + #output += spacing + "dw $" + hex(int(warp_to["event_displacement"][1]))[2:] + hex(int(warp_to["event_displacement"][0]))[2:] + "\n" + #output += spacing + "db $" + hex(int(warp_to["y"]))[2:] + ", $" + hex(int(warp_to["x"]))[2:] + "\n" output += "\n" |