diff --git a/migration_scripts/battle_anim_moves_refactor.py b/migration_scripts/battle_anim_moves_refactor.py index 904597f7de74..116d3964c0e2 100644 --- a/migration_scripts/battle_anim_moves_refactor.py +++ b/migration_scripts/battle_anim_moves_refactor.py @@ -41,8 +41,6 @@ def IsCommaMissing(line: str): moves_info_lines.append(line) -moves_info_lines.insert(1, '#include "battle_anim_scripts.h"\n') - output_file_mi = open('./src/data/moves_info.h', 'w') output_file_mi.writelines(moves_info_lines) output_file_mi.close() @@ -63,29 +61,3 @@ def IsCommaMissing(line: str): b_anim_scripts_s = open('./data/battle_anim_scripts.s', 'w') b_anim_scripts_s.write(lines) b_anim_scripts_s.close() - - -pokemon_h = open('./include/pokemon.h', 'r') -lines = pokemon_h.readlines() -pokemon_h.close() - -pokemon_h_lines = [] -isMoveInfo = False -bracketCount = 0 -for line in lines: - if re.search(r'struct MoveInfo\n', line): - isMoveInfo = True - - if isMoveInfo and re.search(r'\{', line): - bracketCount = bracketCount + 1 - - if isMoveInfo and re.search(r'\}', line): - if (bracketCount == 1): - pokemon_h_lines.append(4 * ' ' + 'const u8 *battleAnimScript;\n') - isMoveInfo = False - bracketCount = bracketCount - 1 - pokemon_h_lines.append(line) - -pokemon_h = open('./include/pokemon.h', 'w') -pokemon_h.writelines(pokemon_h_lines) -pokemon_h.close()