#!/usr/bin/env python3 """ This is an unmaintained one-shot script, only included in the repo for reference. """ import struct def main(): NUM_MOVES = 354 with open("pokeruby.gba", 'rb') as f: f.seek(0x3cf594 ) data = f.read(8 * (NUM_MOVES + 1)) effects = [] combo_id_map = {} # combo_id => move_id combo_pairs = [] # [(combo starter, move id)] with open("update_contest_effect_ids.sql", "w") as f: for i in range(NUM_MOVES+1): effect, type, combo_id, *combo_prev = struct.unpack(" 1]) assert len(idmap) == len(set(idmap.values())) main()