diff options
author | dannye <33dannye@gmail.com> | 2020-05-20 19:40:33 -0500 |
---|---|---|
committer | dannye <33dannye@gmail.com> | 2020-05-20 20:02:53 -0500 |
commit | 10f9559eab8c93b94abb8ae8d1083704ad4e169a (patch) | |
tree | 7dbe7b152dde8a6e9b56664b5b8cdfc0d6be1253 /wram.asm | |
parent | b8954732a3eaa3a784a6e3eaaa68977a9ccd9816 (diff) |
Sync with pokered
Diffstat (limited to 'wram.asm')
-rwxr-xr-x | wram.asm | 165 |
1 files changed, 89 insertions, 76 deletions
@@ -1,4 +1,3 @@ - INCLUDE "constants.asm" flag_array: MACRO @@ -41,6 +40,7 @@ ENDM battle_struct: MACRO \1Species:: db \1HP:: dw +\1PartyPos:: \1BoxLevel:: db \1Status:: db \1Type:: @@ -101,10 +101,10 @@ wChannelFlags1:: ; c02e wChannelFlags2:: ; c036 ds 8 -wChannelDuties:: ; c03e +wChannelDutyCycles:: ; c03e ds 8 -wChannelDutyCycles:: ; c046 +wChannelDutyCyclePatterns:: ; c046 ds 8 wChannelVibratoDelayCounters:: ; c04e @@ -126,28 +126,28 @@ wChannelVibratoDelayCounterReloadValues:: ; c06e ; delay of the beginning of the vibrato from the start of the note ds 8 -wChannelPitchBendLengthModifiers:: ; c076 +wChannelPitchSlideLengthModifiers:: ; c076 ds 8 -wChannelPitchBendFrequencySteps:: ; c07e +wChannelPitchSlideFrequencySteps:: ; c07e ds 8 -wChannelPitchBendFrequencyStepsFractionalPart:: ; c086 +wChannelPitchSlideFrequencyStepsFractionalPart:: ; c086 ds 8 -wChannelPitchBendCurrentFrequencyFractionalPart:: ; c08e +wChannelPitchSlideCurrentFrequencyFractionalPart:: ; c08e ds 8 -wChannelPitchBendCurrentFrequencyHighBytes:: ; c096 +wChannelPitchSlideCurrentFrequencyHighBytes:: ; c096 ds 8 -wChannelPitchBendCurrentFrequencyLowBytes:: ; c09e +wChannelPitchSlideCurrentFrequencyLowBytes:: ; c09e ds 8 -wChannelPitchBendTargetFrequencyHighBytes:: ; c0a6 +wChannelPitchSlideTargetFrequencyHighBytes:: ; c0a6 ds 8 -wChannelPitchBendTargetFrequencyLowBytes:: ; c0ae +wChannelPitchSlideTargetFrequencyLowBytes:: ; c0ae ds 8 wChannelNoteDelayCounters:: ; c0b6 @@ -578,6 +578,8 @@ wcbea:: ; cbea wcbec:: ; cbec ds 16 +wOverworldMapEnd:: + wRedrawRowOrColumnSrcTiles:: ; cbfc ; the tiles of the row or column to be redrawn by RedrawRowOrColumn ds SCREEN_WIDTH * 2 @@ -670,7 +672,10 @@ wTradeCenterPointerTableIndex:: ; cc38 ds 1 -wTextDestinationTileAddrBuffer:: dw ; cc3a +wTextDest:: ; cc3a +; destination pointer for text output +; this variable is written to, but is never read from + ds 2 wDoNotWaitForButtonPressAfterDisplayingText:: ; cc3c ; if non-zero, skip waiting for a button press after displaying text in DisplayTextID @@ -1490,6 +1495,8 @@ wNumMovesMinusOne:: ; cd6c ; FormatMovesString stores the number of moves minus one here ds 1 +UNION + wcd6d:: ds 4 ; buffer for various data wStatusScreenCurrentPP:: ; cd71 @@ -1502,6 +1509,13 @@ wNormalMaxPPList:: ; cd78 ; list of normal max PP (without PP up) values ds 9 +NEXTU + +wEvosMoves:: ds MAX_EVOLUTIONS * EVOLUTION_SIZE + 1 +.end:: + +ENDU + wSerialOtherGameboyRandomNumberListBlock:: ; cd81 ; buffer for transferring the random number list generated by the other gameboy @@ -1664,7 +1678,7 @@ wStatusScreenHPBarColor:: ; cf25 ds 7 -wCopyingSGBTileData:: ; c2fd +wCopyingSGBTileData:: ; cf2d wWhichPartyMenuHPBar:: ; cf2d @@ -1866,7 +1880,7 @@ SECTION "WRAM Bank 1", WRAMX ds 1 ; NUM_MOVES - 3 wEnemyMonBaseStats:: ds 5 -wEnemyMonCatchRate:: ds 1 +wEnemyMonActualCatchRate:: ds 1 wEnemyMonBaseExp:: ds 1 wBattleMonNick:: ds NAME_LENGTH ; d008 @@ -1917,7 +1931,7 @@ wPartyGainExpFlags:: ; d057 wCurOpponent:: ; d058 ; in a wild battle, this is the species of pokemon -; in a trainer battle, this is the trainer class + 200 +; in a trainer battle, this is the trainer class + OPP_ID_OFFSET ds 1 wBattleType:: ; d059 @@ -1987,7 +2001,7 @@ wPlayerBattleStatus3:: ; d063 ; bit 0 - toxic ; bit 1 - light screen ; bit 2 - reflect -; bit 3 - tranformed +; bit 3 - transformed ds 1 wEnemyStatsToDouble:: ; d064 @@ -2296,7 +2310,7 @@ wPredefBank:: ; d0b6 wMonHeader:: ; d0b7 wMonHIndex:: ; d0b7 -; In the ROM base stats data stucture, this is the dex number, but it is +; In the ROM base stats data structure, this is the dex number, but it is ; overwritten with the internal index number after the header is copied to WRAM. ds 1 @@ -3040,7 +3054,6 @@ wMissableObjectList:: ; d5cd wGameProgressFlags:: ; d5e9 ; $c8 bytes - wOaksLabCurScript:: ; d5e9 ds 1 wPalletTownCurScript:: ; d5f0 @@ -3081,27 +3094,27 @@ wRoute9CurScript:: ; d603 ds 1 wRoute10CurScript:: ; d604 ds 1 -wMtMoon1CurScript:: ; d605 +wMtMoon1FCurScript:: ; d605 ds 1 -wMtMoon3CurScript:: ; d606 +wMtMoonB2FCurScript:: ; d606 ds 1 -wSSAnne8CurScript:: ; d607 +wSSAnne1FRoomsCurScript:: ; d607 ds 1 -wSSAnne9CurScript:: ; d608 +wSSAnne2FRoomsCurScript:: ; d608 ds 1 wRoute22CurScript:: ; d609 ds 1 ds 1 -wRedsHouse2CurScript:: ; d60b +wRedsHouse2FCurScript:: ; d60b ds 1 -wViridianMarketCurScript:: ; d60c +wViridianMartCurScript:: ; d60c ds 1 wRoute22GateCurScript:: ; d60d ds 1 wCeruleanCityCurScript:: ; d60e ds 1 ds 7 -wSSAnne5CurScript:: ; d616 +wSSAnneBowCurScript:: ; d616 ds 1 wViridianForestCurScript:: ; d617 ds 1 @@ -3117,11 +3130,11 @@ wRoute19CurScript:: ; d61c ds 1 wRoute21CurScript:: ; d61d ds 1 -wSafariZoneEntranceCurScript:: ; d61e +wSafariZoneGateCurScript:: ; d61e ds 1 -wRockTunnel2CurScript:: ; d61f +wRockTunnelB1FCurScript:: ; d61f ds 1 -wRockTunnel1CurScript:: ; d620 +wRockTunnel1FCurScript:: ; d620 ds 1 ds 1 wRoute11CurScript:: ; d622 @@ -3136,29 +3149,29 @@ wRoute18CurScript:: ; d626 ds 1 wRoute20CurScript:: ; d627 ds 1 -wSSAnne10CurScript:: ; d628 +wSSAnneB1FRoomsCurScript:: ; d628 ds 1 wVermilionCityCurScript:: ; d629 ds 1 -wPokemonTower2CurScript:: ; d62a +wPokemonTower2FCurScript:: ; d62a ds 1 -wPokemonTower3CurScript:: ; d62b +wPokemonTower3FCurScript:: ; d62b ds 1 -wPokemonTower4CurScript:: ; d62c +wPokemonTower4FCurScript:: ; d62c ds 1 -wPokemonTower5CurScript:: ; d62d +wPokemonTower5FCurScript:: ; d62d ds 1 -wPokemonTower6CurScript:: ; d62e +wPokemonTower6FCurScript:: ; d62e ds 1 -wPokemonTower7CurScript:: ; d62f +wPokemonTower7FCurScript:: ; d62f ds 1 -wRocketHideout1CurScript:: ; d630 +wRocketHideoutB1FCurScript:: ; d630 ds 1 -wRocketHideout2CurScript:: ; d631 +wRocketHideoutB2FCurScript:: ; d631 ds 1 -wRocketHideout3CurScript:: ; d632 +wRocketHideoutB3FCurScript:: ; d632 ds 1 -wRocketHideout4CurScript:: ; d633 +wRocketHideoutB4FCurScript:: ; d633 ds 2 wRoute6GateCurScript:: ; d635 ds 1 @@ -3166,59 +3179,59 @@ wRoute8GateCurScript:: ; d636 ds 2 wCinnabarIslandCurScript:: ; d638 ds 1 -wMansion1CurScript:: ; d639 +wPokemonMansion1FCurScript:: ; d639 ds 2 -wMansion2CurScript:: ; d63b +wPokemonMansion2FCurScript:: ; d63b ds 1 -wMansion3CurScript:: ; d63c +wPokemonMansion3FCurScript:: ; d63c ds 1 -wMansion4CurScript:: ; d63d +wPokemonMansionB1FCurScript:: ; d63d ds 1 -wVictoryRoad2CurScript:: ; d63e +wVictoryRoad2FCurScript:: ; d63e ds 1 -wVictoryRoad3CurScript:: ; d63f +wVictoryRoad3FCurScript:: ; d63f ds 1 wCeladonCityCurScript:: ; d640 ds 1 wFightingDojoCurScript:: ; d641 ds 1 -wSilphCo2CurScript:: ; d642 +wSilphCo2FCurScript:: ; d642 ds 1 -wSilphCo3CurScript:: ; d643 +wSilphCo3FCurScript:: ; d643 ds 1 -wSilphCo4CurScript:: ; d644 +wSilphCo4FCurScript:: ; d644 ds 1 -wSilphCo5CurScript:: ; d645 +wSilphCo5FCurScript:: ; d645 ds 1 -wSilphCo6CurScript:: ; d646 +wSilphCo6FCurScript:: ; d646 ds 1 -wSilphCo7CurScript:: ; d647 +wSilphCo7FCurScript:: ; d647 ds 1 -wSilphCo8CurScript:: ; d648 +wSilphCo8FCurScript:: ; d648 ds 1 -wSilphCo9CurScript:: ; d649 +wSilphCo9FCurScript:: ; d649 ds 1 -wHallOfFameRoomCurScript:: ; d64a +wHallOfFameCurScript:: ; d64a ds 1 -wGaryCurScript:: ; d64b +wChampionsRoomCurScript:: ; d64b ds 1 -wLoreleiCurScript:: ; d64c +wLoreleisRoomCurScript:: ; d64c ds 1 -wBrunoCurScript:: ; d64d +wBrunosRoomCurScript:: ; d64d ds 1 -wAgathaCurScript:: ; d64e +wAgathasRoomCurScript:: ; d64e ds 1 -wUnknownDungeon3CurScript:: ; d64f +wCeruleanCaveB1FCurScript:: ; d64f ds 1 -wVictoryRoad1CurScript:: ; d650 +wVictoryRoad1FCurScript:: ; d650 ds 1 ds 1 -wLanceCurScript:: ; d652 +wLancesRoomCurScript:: ; d652 ds 1 ds 4 -wSilphCo10CurScript:: ; d657 +wSilphCo10FCurScript:: ; d657 ds 1 -wSilphCo11CurScript:: ; d658 +wSilphCo11FCurScript:: ; d658 ds 1 ds 1 wFuchsiaGymCurScript:: ; d65a @@ -3228,30 +3241,28 @@ wSaffronGymCurScript:: ; d65b ds 1 wCinnabarGymCurScript:: ; d65d ds 1 -wCeladonGameCornerCurScript:: ; d65e +wGameCornerCurScript:: ; d65e ds 1 -wRoute16GateCurScript:: ; d65f +wRoute16Gate1FCurScript:: ; d65f ds 1 wBillsHouseCurScript:: ; d660 ds 1 wRoute5GateCurScript:: ; d661 ds 1 wPowerPlantCurScript:: ; d662 -; overload - ds 0 wRoute7GateCurScript:: ; d662 ; overload ds 1 ds 1 -wSSAnne2CurScript:: ; d664 +wSSAnne2FCurScript:: ; d664 ds 1 -wSeafoamIslands4CurScript:: ; d665 +wSeafoamIslandsB3FCurScript:: ; d665 ds 1 wRoute23CurScript:: ; d666 ds 1 -wSeafoamIslands5CurScript:: ; d667 +wSeafoamIslandsB4FCurScript:: ; d667 ds 1 -wRoute18GateCurScript:: ; d668 +wRoute18Gate1FCurScript:: ; d668 ds 1 ds 78 @@ -3291,7 +3302,7 @@ wFossilMon:: ; d70f ds 2 wEnemyMonOrTrainerClass:: ; d712 -; trainer classes start at 200 +; trainer classes start at OPP_ID_OFFSET ds 1 wPlayerJumpingYScreenCoordsIndex:: ; d713 @@ -3401,7 +3412,7 @@ wd732:: ; d731 ; bit 1: remnant of debug mode? not set by the game code. ; if it is set ; 1. skips most of Prof. Oak's speech, and uses NINTEN as the player's name and SONY as the rival's name -; 2. does not have the player start in floor two of the playyer's house (instead sending them to [wLastMap]) +; 2. does not have the player start in floor two of the player's house (instead sending them to [wLastMap]) ; 3. allows wild battles to be avoided by holding down B ; bit 2: the target warp is a fly warp (bit 3 set or blacked out) or a dungeon warp (bit 4 set) ; bit 3: used warp pad, escape rope, dig, teleport, or fly, so the target warp is a "fly warp" @@ -3432,7 +3443,7 @@ wd736:: ; d735 ; bit 1: the player is currently stepping down from a door ; bit 2: standing on a warp ; bit 6: jumping down a ledge / fishing animation -; bit 7: player sprite spinning due to spin tiles (Rocket hidehout / Viridian Gym) +; bit 7: player sprite spinning due to spin tiles (Rocket hideout / Viridian Gym) ds 1 wCompletedInGameTradeFlags:: ; d736 @@ -3459,7 +3470,7 @@ wCardKeyDoorX:: ; d73f wFirstLockTrashCanIndex:: ; d742 ds 1 -wSecondLockTrashCanIndex:: ; d743 +wSecondLockTrashCanIndex:: ; d744 ds 1 ds 2 @@ -3493,6 +3504,7 @@ wSerialEnemyDataBlock:: ; d892 wEnemyPartyCount:: ds 1 ; d89b wEnemyPartyMons:: ds PARTY_LENGTH + 1 ; d89c +; Overload enemy party data UNION wWaterRate:: db ; d8a3 @@ -3513,6 +3525,7 @@ wEnemyMonNicks:: ds NAME_LENGTH * PARTY_LENGTH ; d9ed ENDU + wTrainerHeaderPtr:: ; da2f ds 2 @@ -3527,7 +3540,7 @@ wUnusedDA38:: ; da37 wCurMapScript:: ; da38 ; index of current map script, mostly used as index for function pointer array -; mostly copied from map-specific map script pointer and wirtten back later +; mostly copied from map-specific map script pointer and written back later ds 1 ds 7 |