mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00

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.
24 lines
932 B
NASM
24 lines
932 B
NASM
Route25_Object:
|
|
db $2c ; border block
|
|
|
|
def_warp_events
|
|
warp_event 49, 5, BILLS_HOUSE, 1
|
|
warp_event 60, 1, UNDERWATER_TUNNEL, 1
|
|
|
|
def_bg_events
|
|
bg_event 51, 7, 11 ; Route25Text11
|
|
|
|
def_object_events
|
|
object_event 14, 2, SPRITE_YOUNGSTER, STAY, DOWN, 1, OPP_YOUNGSTER, 5
|
|
object_event 18, 5, SPRITE_YOUNGSTER, STAY, UP, 2, OPP_YOUNGSTER, 6
|
|
object_event 24, 4, SPRITE_COOLTRAINER_M, STAY, DOWN, 3, OPP_JR_TRAINER_M, 2
|
|
object_event 18, 8, SPRITE_COOLTRAINER_F, STAY, RIGHT, 4, OPP_LASS, 9
|
|
object_event 32, 3, SPRITE_YOUNGSTER, STAY, LEFT, 5, OPP_YOUNGSTER, 7
|
|
object_event 36, 4, SPRITE_COOLTRAINER_F, STAY, DOWN, 6, OPP_LASS, 10
|
|
object_event 8, 4, SPRITE_HIKER, STAY, RIGHT, 7, OPP_HIKER, 2
|
|
object_event 23, 9, SPRITE_HIKER, STAY, UP, 8, OPP_HIKER, 3
|
|
object_event 13, 7, SPRITE_HIKER, STAY, RIGHT, 9, OPP_HIKER, 4
|
|
object_event 22, 2, SPRITE_POKE_BALL, STAY, NONE, 10, TM_SEISMIC_TOSS
|
|
|
|
def_warps_to ROUTE_25
|