diff --git a/pokedex/data/csv/contest_combos.csv b/pokedex/data/csv/contest_combos.csv index 6af426a..3e2f492 100644 --- a/pokedex/data/csv/contest_combos.csv +++ b/pokedex/data/csv/contest_combos.csv @@ -1,6 +1,6 @@ first_move_id,second_move_id 1,3 -1,29 +1,21 1,185 7,8 7,9 @@ -37,7 +37,6 @@ first_move_id,second_move_id 74,22 74,71 74,72 -74,73 74,75 74,76 74,80 @@ -45,6 +44,7 @@ first_move_id,second_move_id 74,331 74,338 74,345 +81,169 82,225 82,337 82,349 @@ -77,8 +77,8 @@ first_move_id,second_move_id 111,205 116,2 116,5 -116,21 116,25 +116,29 116,36 116,38 116,167 @@ -108,8 +108,6 @@ first_move_id,second_move_id 170,66 170,136 170,223 -170,276 -170,329 174,180 174,194 174,212 @@ -132,10 +130,8 @@ first_move_id,second_move_id 199,276 201,28 201,189 -201,300 201,311 201,328 -201,341 203,175 203,179 203,194 @@ -155,17 +151,18 @@ first_move_id,second_move_id 230,77 230,78 230,79 -240,3 240,55 240,56 240,57 240,61 240,87 +240,110 240,127 240,128 240,145 240,152 240,190 +240,250 240,291 240,308 240,311 @@ -174,7 +171,6 @@ first_move_id,second_move_id 240,346 240,352 241,7 -241,27 241,52 241,53 241,76 @@ -186,6 +182,7 @@ first_move_id,second_move_id 241,235 241,236 241,257 +241,261 241,284 241,299 241,307 @@ -198,22 +195,14 @@ first_move_id,second_move_id 252,292 254,255 254,256 -258,58 258,59 -258,62 -258,114 258,181 -258,196 -258,301 258,311 -258,329 -258,333 268,9 268,84 268,85 268,86 268,87 -268,192 268,209 268,344 268,351 diff --git a/pokedex/data/csv/moves.csv b/pokedex/data/csv/moves.csv index 7887868..a176d90 100644 --- a/pokedex/data/csv/moves.csv +++ b/pokedex/data/csv/moves.csv @@ -106,7 +106,7 @@ id,identifier,generation_id,type_id,power,pp,accuracy,priority,target_id,damage_ 105,recover,1,1,,10,,0,7,1,33,,4,23,8 106,harden,1,1,,30,,0,7,1,12,,5,16,13 107,minimize,1,1,,10,,0,7,1,109,,3,16,13 -108,smokescreen,1,1,,20,100,0,10,1,24,,4,21,10 +108,smokescreen,1,1,,20,100,0,10,1,24,,4,22,10 109,confuse-ray,1,8,,10,100,0,10,1,50,,4,21,10 110,withdraw,1,11,,40,,0,7,1,12,,3,15,13 111,defense-curl,1,1,,40,,0,7,1,157,,3,16,13 @@ -146,7 +146,7 @@ id,identifier,generation_id,type_id,power,pp,accuracy,priority,target_id,damage_ 145,bubble,1,11,40,30,100,0,11,3,71,10,3,8,2 146,dizzy-punch,1,1,70,10,100,0,10,2,77,20,1,4,16 147,spore,1,12,,15,100,0,10,1,2,,2,5,10 -148,flash,1,1,,20,100,0,10,1,24,,2,21,10 +148,flash,1,1,,20,100,0,10,1,24,,2,22,10 149,psywave,1,14,,15,100,0,10,3,89,,4,14,5 150,splash,1,1,,40,,0,7,1,86,,3,28,16 151,acid-armor,1,4,,20,,0,7,1,52,,5,32,11 @@ -178,7 +178,7 @@ id,identifier,generation_id,type_id,power,pp,accuracy,priority,target_id,damage_ 177,aeroblast,2,3,100,5,95,0,10,3,44,,1,2,22 178,cotton-spore,2,12,,40,100,0,11,1,61,,2,10,1 179,reversal,2,2,,15,100,0,10,2,100,,1,28,15 -180,spite,2,8,,10,100,0,10,1,101,,5,28,19 +180,spite,2,8,,10,100,0,10,1,101,,5,26,19 181,powder-snow,2,15,40,25,100,0,11,3,6,10,2,1,5 182,protect,2,1,,10,,4,7,1,112,,3,15,16 183,mach-punch,2,2,40,30,100,1,10,2,104,,1,30,1 @@ -245,7 +245,7 @@ id,identifier,generation_id,type_id,power,pp,accuracy,priority,target_id,damage_ 244,psych-up,2,1,,10,,0,10,1,144,,4,12,11 245,extreme-speed,2,1,80,5,100,2,10,2,104,,1,30,1 246,ancient-power,2,6,60,5,100,0,10,3,141,10,5,32,18 -247,shadow-ball,2,8,80,15,100,0,10,3,73,20,4,21,17 +247,shadow-ball,2,8,80,15,100,0,10,3,73,20,4,22,17 248,future-sight,2,14,120,10,100,0,10,3,149,,4,24,17 249,rock-smash,2,2,40,15,100,0,10,2,70,50,5,29,18 250,whirlpool,2,11,35,15,85,0,10,3,262,100,2,24,21 diff --git a/scripts/gen-iii-contest-effects.py b/scripts/gen-iii-contest-effects.py new file mode 100644 index 0000000..8f97f31 --- /dev/null +++ b/scripts/gen-iii-contest-effects.py @@ -0,0 +1,113 @@ +#!/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()