mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
start using EVENT_DISP in object data output
hg-commit-id: bbc9b24dd8cc
This commit is contained in:
parent
238a5e62ae
commit
8626486876
|
@ -483,12 +483,15 @@ def object_data_pretty_printer(map_id):
|
||||||
output += spacing + "; warp-to\n"
|
output += spacing + "; warp-to\n"
|
||||||
output += "\n"
|
output += "\n"
|
||||||
|
|
||||||
#TODO: use EVENT_DISP per sawakita
|
|
||||||
for warp_to_id in object["warp_tos"]:
|
for warp_to_id in object["warp_tos"]:
|
||||||
warp_to = object["warp_tos"][warp_to_id]
|
warp_to = object["warp_tos"][warp_to_id]
|
||||||
|
map_width = map["x"]
|
||||||
|
warp_to_y = hex(int(warp_to["y"]))[2:]
|
||||||
|
warp_to_x = hex(int(warp_to["x"]))[2:]
|
||||||
|
|
||||||
output += spacing + "dw $" + hex(int(warp_to["event_displacement"][1]))[2:] + hex(int(warp_to["event_displacement"][0]))[2:] + "\n"
|
output += spacing + "EVENT_DISP $" + map_width[2:] + ", $" + warp_to_y + ", $" + warp_to_x + "\n"
|
||||||
output += spacing + "db $" + hex(int(warp_to["y"]))[2:] + ", $" + hex(int(warp_to["x"]))[2:] + "\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"
|
output += "\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue