feat(game): give monsters their real level up moveset (#85)

* feat(codegen): generate the level up learnsets from the decomp

* feat(game): give monsters their real level up moveset
This commit is contained in:
Fiereu authored and GitHub committed 2026-08-05 10:38:55 +02:00
1 parent e24bc5518d
commit 1ecfabaed5
22 files changed
+485 -39

No files matched your search

@@ -17,6 +17,11 @@ data class LearnedMoveSlot(
val appearance: LearnedMoveAppearance?,
)
// TODO Decide how a monster stores the moves it has learned
// Nothing sends LearnedMovesetPacket (S2C 0x7A) or reads SetActiveMovesetPacket (C2S 0x3C), and
// ByteDex holds no capture of either. Both shapes suggest the client keeps every learned move and
// picks four active ones, which Pokemon cannot hold today because it caps moves at four. Capture
// the flow, then either move to a learned pool or drop the packets.
data class LearnedMovesetPacket(
val moves: List<LearnedMoveSlot>,
)
@@ -1,6 +1,7 @@
package de.fiereu.openmmo.net.game.packets.battle
import de.fiereu.bytecodec.*
import de.fiereu.openmmo.common.MAX_MOVE_SLOTS
/**
* One monster as the battle packets carry it, shared by the field state and the switch-in. The
@@ -27,7 +28,7 @@ data class BattleMonBlock(
}
companion object {
const val MOVE_SLOTS = 4
const val MOVE_SLOTS = MAX_MOVE_SLOTS
}
}