Allow multiple moves to be learned at the same level - pret/pokered GitHub Wiki
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, .next
And it's done!
Enjoy your Butterfree learning 3 status moves at level 12.