-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow multiple moves to be learned at the same level
kagnusdev edited this page Aug 24, 2024
·
1 revision
In later gens, some mons like Butterfree can learn multiple moves at the same level.
It's actually quite simple to add this feature to pokered.
We just need to edit LearnMoveFromLevelUp from engine/pokemon/evos_moves.asm like this:
ld a, [hli] ; move ID
jr nz, .learnSetLoop
ld d, a ; ID of move to learn
+ push hl ; save hl before the call because the function modifies it
+ call .tryToLearn
+ pop hl ; restore hl to continue the loop
+ jr .learnSetLoop
+.tryToLearn
ld a, [wMonDataLocation]
and a
jr nz, .nextAnd it's done!
Enjoy your Butterfree learning 3 status moves at level 12.