feat(game): implement the Kanto story from Pallet Town through the Pokedex (#127)

* feat(game): implement Kanto story through the Pokedex

* fix(game): stop the rival walking into the player in the pokedex scene

* fix(game): stop oak teleporting to his desk in the starter scene

* fix(game): make a scripted warp arrive the way a walked one does

* fix(game): finish the oaks lab rival scene whether the player wins or loses

* chore(game): tidy the kanto script and item codegen comments

* docs: point the script guides at MapEntryScripts and trainerBattle

* fix(codegen): send item ids in the region whose table matches the decomp
This commit is contained in:
Fiereu authored and GitHub committed 2026-08-09 10:45:24 +02:00
1 parent 70c746fdc6
commit 9215a0862a
35 files changed
+1311 -508

No files matched your search

+10
View File
@@ -41,6 +41,16 @@ jteCodegen {
"$region|${rootProject.layout.projectDirectory.dir("decomp/$decomp").asFile.absolutePath}"
})
}
// Item ids scripts hand to giveItem. Both GBA games number items the same, so one decomp is
// enough, like moves and species. The client holds one item table per region, so the region
// decides what a number means. Checked against a real client: region 0 reads 3, 4 and 13 as
// Great Ball, Poke Ball and Potion, matching the decomp, while region 1 and region 5 read the
// same numbers as unrelated items.
register("item") {
mainClass.set("de.fiereu.openmmo.codegen.item.Main")
inputDirs.from(sourceDecompDir)
extraArgs.set(listOf("kanto|${sourceDecompDir.asFile.absolutePath}"))
}
register("moves") {
mainClass.set("de.fiereu.openmmo.codegen.move.Main")
templatesSubdir.set("move")