You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
fix the use of text_command_classes (not the same format as command_classes)
This commit is contained in:
@@ -458,8 +458,8 @@ class NewTextScript:
|
|||||||
|
|
||||||
# match the command id byte to a scripting command class like MainText
|
# match the command id byte to a scripting command class like MainText
|
||||||
for class_ in text_command_classes:
|
for class_ in text_command_classes:
|
||||||
if class_.id == cur_byte:
|
if class_[1].id == cur_byte:
|
||||||
scripting_command_class = class_
|
scripting_command_class = class_[1]
|
||||||
|
|
||||||
# no matching command found
|
# no matching command found
|
||||||
if scripting_command_class == None:
|
if scripting_command_class == None:
|
||||||
@@ -487,9 +487,10 @@ class NewTextScript:
|
|||||||
|
|
||||||
# store the script in the global table/map thing
|
# store the script in the global table/map thing
|
||||||
script_parse_table[start_address:current_address] = self
|
script_parse_table[start_address:current_address] = self
|
||||||
|
|
||||||
asm_output = "\n".join([command.to_asm() for command in commands])
|
if self.debug:
|
||||||
print "--------------\n"+asm_output
|
asm_output = "\n".join([command.to_asm() for command in commands])
|
||||||
|
print "--------------\n"+asm_output
|
||||||
|
|
||||||
# store the script
|
# store the script
|
||||||
self.commands = commands
|
self.commands = commands
|
||||||
|
Reference in New Issue
Block a user