mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
improve to_asm output (newlines)
This commit is contained in:
parent
3b234223c5
commit
9b4ce897d4
@ -1870,7 +1870,7 @@ stop_points = [0x1aafa2,
|
|||||||
0x9f58f, #battle tower
|
0x9f58f, #battle tower
|
||||||
0x9f62f, #battle tower
|
0x9f62f, #battle tower
|
||||||
]
|
]
|
||||||
class Script():
|
class Script:
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.address = None
|
self.address = None
|
||||||
self.commands = None
|
self.commands = None
|
||||||
@ -1987,6 +1987,8 @@ class Script():
|
|||||||
|
|
||||||
def to_asm(self):
|
def to_asm(self):
|
||||||
asm_output = "".join([command.to_asm()+"\n" for command in self.commands])
|
asm_output = "".join([command.to_asm()+"\n" for command in self.commands])
|
||||||
|
if asm_output[-1] == "\n":
|
||||||
|
asm_output = asm_output[:-1]
|
||||||
return asm_output
|
return asm_output
|
||||||
|
|
||||||
def old_parse(self, *args, **kwargs):
|
def old_parse(self, *args, **kwargs):
|
||||||
@ -3240,6 +3242,8 @@ class MapEventHeader:
|
|||||||
output += people_event.to_asm()
|
output += people_event.to_asm()
|
||||||
output += "\n"
|
output += "\n"
|
||||||
|
|
||||||
|
if output[-1] == "\n":
|
||||||
|
output = output[:-1]
|
||||||
return output
|
return output
|
||||||
|
|
||||||
all_map_event_headers = []
|
all_map_event_headers = []
|
||||||
|
Loading…
Reference in New Issue
Block a user