Port the fishing rods and wild Magikarp
The Old, Good and Super Rods run FishFunction facing water: the map's fish group and Fish pick no fish, no bite, or a Pokémon from FishGroups and the time of day's TimeFishGroups. The player casts and jiggles with the fishing frames drawn from LoadFishingGFX's tiles, shows "!" on a bite, and the hooked Pokémon attacks as BATTLETYPE_FISH. Facing pieces now use signed offsets, which the rod above and left of the player needs. Wild Magikarp no longer stop a battle: LoadEnemyMon redraws their DVs through CalcMagikarpLength and its filters, as the original does. The length routine matches the original in the reference emulator. Part of #27 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cb4676c7d
commit
397dcef44c
20 files changed
+681
-47
No files matched your search
@@ -161,6 +161,8 @@ export const RAM = {
|
||||
visitedSpawns: 0xdca5,
|
||||
tempWildMonSpecies: 0xd22e,
|
||||
coins: 0xd855,
|
||||
/** hBGMapMode: HRAM, like hMoneyTemp below. */
|
||||
bgMapMode: 0xffd4,
|
||||
blueCardBalance: 0xdc4b,
|
||||
/** hMoneyTemp: HRAM, not WRAM like the other entries above. */
|
||||
moneyTemp: 0xffc3,
|
||||
@@ -274,6 +276,16 @@ export const OVERWORLD = {
|
||||
"_BasementKey.BasementKeyScript": 0x507e1,
|
||||
"_Squirtbottle.SquirtbottleScript": 0x5073c,
|
||||
"_Squirtbottle.CheckCanUseSquirtbottle": 0x50753,
|
||||
FishGroups: 0x92488,
|
||||
TimeFishGroups: 0x9266f,
|
||||
Script_GotABite: 0xd035,
|
||||
Script_NotEvenANibble: 0xd01e,
|
||||
Script_NotEvenANibble2: 0xd027,
|
||||
Fishing_CheckFacingUp: 0xd06c,
|
||||
LoadFishingGFX: 0xb84b3,
|
||||
PutTheRodAway: 0xd095,
|
||||
FishingGFX: 0xb84f2,
|
||||
KrisFishingGFX: 0xb8582,
|
||||
Flypoints: 0x91c5e,
|
||||
"TownMapBubble.Where": 0x91bf4,
|
||||
RuinsOfAlphKabutoChamber_MapAttributes: 0x958d0,
|
||||
@@ -531,6 +543,9 @@ export const MENU = {
|
||||
CardKeyEffect: 0xf745,
|
||||
BasementKeyEffect: 0xf74c,
|
||||
SquirtbottleEffect: 0xf73e,
|
||||
OldRodEffect: 0xf5a5,
|
||||
GoodRodEffect: 0xf5a9,
|
||||
SuperRodEffect: 0xf5ad,
|
||||
VitaminEffect: 0xee3d,
|
||||
RareCandyEffect: 0xef14,
|
||||
ItemStatRoseText: 0xeea6,
|
||||
@@ -548,6 +563,8 @@ export const MENU = {
|
||||
/** Battle engine tables and texts, keyed by their PRET labels so that
|
||||
* \`npm run check:reference\` can verify each address by name. */
|
||||
export const BATTLE = {
|
||||
HookedPokemonAttackedText: 0x8075c,
|
||||
MagikarpLengths: 0xfbca8,
|
||||
ItemUsedText: 0xf83d,
|
||||
BallBrokeFreeText: 0xedb5,
|
||||
BallAppearedCaughtText: 0xedba,
|
||||
|
||||
Reference in new issue
Block a user