Groundwork for Tradeback Move Tutor

Currently the move tutor is a little bit broken - the IDs are 1 above how they should be. Shell speculates that it's searching at the table starting from Kangaskhan due to the way the decrements shake up but it may just be making things more complicated than they are.

Big cheese code is `PrepareTradebackMoveList`, it's where things are mucking up.

Also, the code can be significantly optimised, as it's currently being adapted from the function above, `PrepareRelearnableMoveList`; It doesn't need to check levels, for example.

Note that the relearner functions properly, so use it as a reference. I may have removed something important.

Technically, we could have NO_MON as an entry which may make things shake out properly. But I'd rather have a proper fix.
This commit is contained in:
Llinos Evans 2023-04-23 06:11:05 +01:00
parent 5e21c159f9
commit 2f01628cd9
24 changed files with 1657 additions and 97 deletions

View file

@ -10,9 +10,9 @@ eC<Fd
't t'
oooooteC<Fd
' 'n meC<Fd
'89 'n lll
'tt 'n lll
eC<Fd
'wA=r'n ooo
'=r'n ooo
eC<Fd&#####"n meC<Fd
' 'tlllllteC<Fd
'6 't

View file

@ -1,23 +1,27 @@
,,,,+WWWWWWWWWWWWWWWWWW%QQ$WWWWWWWW%WWWW%n
,,,,+WWWWWWWWWWWWWWWWWW%hiWWWWWWWW%WWWW%n
n
n
`ttt
6CCCCd eCd11eCCCC
6CCCCdhied11eCCCC
LLL
nlnttnt
nCCCCduveC-.CCCCLlL
nCCCCd|}~e-.CCCCLlL
mln
ttottt
TTCCdhieCCCCCCCCC11111ml
CCdUUUUUUUeCCCCCC11111ml
mL
ttmtt
nxTCC-hi.CCCCCCCCCQQQQQQQQQQQQQQQQQ
nCTTd
|~eCCd1eCCC??????????????????;CxTT
tt
eCC-.CCC,,,,,,,,,,,,,,,,,,)CCxx.CCCCCCCC,,,,,,,,,,,,,,,,,,,??????????????????
TTT
T
eCCCCCCQQQQQQQQQQQQQQQQQ
nxxxteCTCdted1eCCC??????????????????;CCd
t
T
t
e-.CCC,,,,,,,,,,,,,,,,,,)CC-.CCCCCC,,,,,,,,,,,,,,,,,,,??????????????????