diff options
Diffstat (limited to 'wram.asm')
-rw-r--r-- | wram.asm | 253 |
1 files changed, 95 insertions, 158 deletions
@@ -359,23 +359,20 @@ TileMapEnd:: SECTION "Battle", WRAM0 +wc608:: wOddEgg:: party_struct OddEgg wOddEggName:: ds PKMN_NAME_LENGTH wOddEggOTName:: ds PKMN_NAME_LENGTH - ds wOddEgg - @ + ds wc608 - @ wBT_OTTemp:: battle_tower_struct wBT_OTTemp - ds wBT_OTTemp - @ + ds wc608 - @ hall_of_fame wHallOfFameTemp - ds wHallOfFameTemp - @ + ds wc608 - @ wMisc:: ; ds (SCREEN_WIDTH + 4) * (SCREEN_HEIGHT + 2) -wBattle:: -wc608:: - ds 7 -wc60f:: - ds 3 + ds 10 wc612:: ds 10 wInitHourBuffer:: ; c61c @@ -383,8 +380,9 @@ wInitHourBuffer:: ; c61c wc626:: ds wc608 - @ -wEnemyMoveStruct:: move_struct wEnemyMoveStruct -wPlayerMoveStruct:: move_struct wPlayerMoveStruct +wBattle:: +wEnemyMoveStruct:: move_struct wEnemyMoveStruct ; c608 +wPlayerMoveStruct:: move_struct wPlayerMoveStruct ; c60f EnemyMonNick:: ds PKMN_NAME_LENGTH ; c616 BattleMonNick:: ds PKMN_NAME_LENGTH ; c621 @@ -542,17 +540,17 @@ PlayerDamageTaken:: ; c682 EnemyDamageTaken:: ; c684 ds 2 -wBattleReward:: ds 3 +wBattleReward:: ds 3 ; c686 wBattleAnimParam:: wKickCounter:: -wPresentPower:: ds 1 +wPresentPower:: ds 1 ; c689 BattleScriptBuffer:: ; c68a ds 40 BattleScriptBufferLoc:: ; c6b2 ds 2 -wTurnEnded:: ds 1 +wTurnEnded:: ds 1 ; c6b4 ds 1 PlayerStats:: ; c6b6 @@ -592,10 +590,8 @@ EnemyDefLevel:: ; c6d5 ds 1 EnemySpdLevel:: ; c6d6 ds 1 -wTownMapCursorLandmark:: EnemySAtkLevel:: ; c6d7 ds 1 -wTownMapPlayerIconLandmark:: EnemySDefLevel:: ; c6d8 ds 1 EnemyAccLevel:: ; c6d9 @@ -616,7 +612,8 @@ PlayerSubstituteHP:: ; c6df EnemySubstituteHP:: ; c6e0 ds 1 -wc6e1:: ds 2 +wUnusedPlayerLockedMove:: ds 1 ; c6e1 + ds 1 CurPlayerMove:: ; c6e3 ds 1 CurEnemyMove:: ; c6e4 @@ -626,16 +623,12 @@ LinkBattleRNCount:: ; c6e5 ; how far through the prng stream ds 1 -wc6e6:: ds 1 -wc6e7:: ds 1 -wc6e8:: ds 1 -wc6e9:: +wEnemyItemState:: ds 1 ; c6e6 + ds 2 CurEnemyMoveNum:: ; c6e9 ds 1 -wEnemyHPAtTimeOfPlayerSwitch:: -wc6ea:: ds 1 -wc6eb:: ds 1 +wEnemyHPAtTimeOfPlayerSwitch:: ds 2 ; c6ea wPayDayMoney:: ds 3 ; c6ec wSafariMonAngerCount:: ds 1 @@ -649,12 +642,11 @@ DisabledMove:: ; c6f5 ds 1 EnemyDisabledMove:: ; c6f6 ds 1 -wc6f7:: ds 1 +wWhichMonFaintedFirst:: ds 1 ; exists so you can't counter on switch LastEnemyCounterMove:: ; c6f8 ds 1 -wc6f9:: LastPlayerCounterMove:: ; c6f9 ds 1 @@ -663,11 +655,9 @@ wEnemyMinimized:: ds 1 ; c6fa AlreadyFailed:: ; c6fb ds 1 -wc6fc:: ds 1 -wc6fd:: ds 1 -wc6fe:: +wBattleParticipantsIncludingFainted:: ds 1 ; c6fc +wDanger:: ds 1 ; c6fd wPlayerMinimized:: ds 1 ; c6fe -wc6ff:: PlayerScreens:: ; c6ff ; bit ; 4 reflect @@ -676,34 +666,25 @@ PlayerScreens:: ; c6ff ; 0 spikes ds 1 -wc700:: EnemyScreens:: ; c700 ; see PlayerScreens ds 1 -wc701:: PlayerSafeguardCount:: ; c701 ds 1 -wc702:: PlayerLightScreenCount:: ; c702 ds 1 -wc703:: PlayerReflectCount:: ; c703 ds 1 -wc704:: ds 1 -wc705:: + ds 1 EnemySafeguardCount:: ; c705 ds 1 -wc706:: EnemyLightScreenCount:: ; c706 ds 1 EnemyReflectCount:: ; c707 ds 1 - -wc708:: ds 1 -wc709:: ds 1 -wc70a:: + ds 2 Weather:: ; c70a ; 00 normal ; 01 rain @@ -714,81 +695,62 @@ Weather:: ; c70a ; 06 sandstorm subsided ds 1 -wc70b:: WeatherCount:: ; c70b ; # turns remaining ds 1 -wc70c:: LoweredStat:: ; c70c ds 1 -wc70d:: EffectFailed:: ; c70d ds 1 -wc70e:: FailedMessage:: ; c70e ds 1 -wc70f:: -wEnemyGoesFirst:: +wEnemyGoesFirst:: ; c70f ds 1 -wc710:: wPlayerIsSwitching:: ds 1 ; c710 -wc711:: wEnemyIsSwitching:: ds 1 ; c711 -wc712:: PlayerUsedMoves:: ; c712 ; add a move that has been used once by the player ; added in order of use ds NUM_MOVES -wc716:: ds 1 -wEnemySwitchMonParam:: -wc717:: ds 1 -wc718:: -wEnemySwitchMonIndex:: ds 1 -wTempLevel:: -wc719:: ds 1 -LastPlayerMon:: ; c71a -wc71a:: ds 1 +wEnemyAISwitchScore:: ds 1 ; c716 +wEnemySwitchMonParam:: ds 1 ; c717 +wEnemySwitchMonIndex:: ds 1 ; c718 +wTempLevel:: ds 1 ; c719 +LastPlayerMon:: ds 1 ; c71a LastPlayerMove:: ; c71b ds 1 LastEnemyMove:: ; c71c ds 1 -wPlayerFutureSightCount:: ds 1 -wEnemyFutureSightCount:: ds 1 -wc71f:: ds 1 -wc720:: ds 4 ; copy from/to EnemyMonBaseStats, length=7 -wc724:: ds 3 -wPlayerFutureSightDamage:: ds 2 -wEnemyFutureSightDamage:: ds 2 -wPlayerRageCounter:: ds 1 -wEnemyRageCounter:: ds 1 -wc72d:: ds 1 ; if 0 then PrintButItFailed -wc72e:: -wPlayerTrappingMove:: ds 1 -wc72f:: -wEnemyTrappingMove:: ds 1 -wc730:: -wPlayerWrapCount:: ds 1 -wc731:: -wEnemyWrapCount:: ds 1 -wc732:: -wPlayerCharging:: ds 1 -wEnemyCharging:: -wc733:: ds 1 -wTradeAnimPointer:: -wc734:: +wPlayerFutureSightCount:: ds 1 ; c71d +wEnemyFutureSightCount:: ds 1 ; c71e +wGivingExperienceToExpShareHolders:: ds 1 ; c71f +wBackupEnemyMonBaseStats:: ds 5 ; c720 +wBackupEnemyMonCatchRate:: db ; c725 +wBackupEnemyMonBaseExp:: db ; c726 +wPlayerFutureSightDamage:: ds 2 ; c727 +wEnemyFutureSightDamage:: ds 2 ; c729 +wPlayerRageCounter:: ds 1 ; c72b +wEnemyRageCounter:: ds 1 ; c72c +wBeatUpHitAtLeastOnce:: ds 1 ; c72d +wPlayerTrappingMove:: ds 1 ; c72e +wEnemyTrappingMove:: ds 1 ; c72f +wPlayerWrapCount:: ds 1 ; c730 +wEnemyWrapCount:: ds 1 ; c731 +wPlayerCharging:: ds 1 ; c732 +wEnemyCharging:: ds 1 ; c733 BattleEnded:: ; c734 ds 1 -wWildMonMoves:: ds NUM_MOVES -wWildMonPP:: ds NUM_MOVES -wAmuletCoin:: ds 1 -wSomeoneIsRampaging:: ds 1 -wPlayerJustGotFrozen:: ds 1 -wEnemyJustGotFrozen:: ds 1 +wWildMonMoves:: ds NUM_MOVES ; c735 +wWildMonPP:: ds NUM_MOVES ; c739 +wAmuletCoin:: ds 1 ; c73a +wSomeoneIsRampaging:: ds 1 ; c73b +wPlayerJustGotFrozen:: ds 1 ; c73c +wEnemyJustGotFrozen:: ds 1 ; c73d wBattleEnd:: ; Battle RAM @@ -798,6 +760,7 @@ wTrademons:: wPlayerTrademon:: trademon wPlayerTrademon wOTTrademon:: trademon wOTTrademon wTrademonsEnd:: +wTradeAnimPointer:: ds 2 wLinkPlayer1Name:: ds NAME_LENGTH wLinkPlayer2Name:: ds NAME_LENGTH @@ -827,7 +790,8 @@ wPokegearPhoneScrollPosition:: ds 1 ; c6d2 wPokegearPhoneSelectedPerson:: ds 1 ; c6d3 wPokegearPhoneSubmenuCursor:: ds 1 ; c6d4 wPokegearMapCursorObjectPointer:: ds 2 ; c6d5 - ds 2 +wPokegearMapCursorLandmark:: ds 1 ; c6d7 +wPokegearMapPlayerIconLandmark:: ds 1 ; c6d8 wPokegearRadioChannelBank:: ds 1 ; c6d9 wPokegearRadioChannelAddr:: ds 2 ; c6da wPokegearRadioMusicPlaying:: ds 1 ; c6dc @@ -2226,8 +2190,8 @@ wDudeKeyItems:: ds 18 wDudeKeyItemsEnd:: ds 1 wDudeNumBalls:: ds 1 ; d2a6 -wDudeBalls:: ds 2 * 4 -wDudeBallsEnd:: ds 1 +wDudeBalls:: ds 2 * 4 ; d2a7 +wDudeBallsEnd:: ds 1 ; d2af wDudeBagEnd:: ds wDudeBag - @ @@ -2286,15 +2250,12 @@ ScriptDelay:: ; d44d wPriorityScriptBank:: wScriptTextBank:: -wd44e:: ds 1 + ds 1 ; d44e wPriorityScriptAddr:: -wScriptTextAddr:: -wd44f:: ds 1 -wd450:: ds 1 -wd451:: ds 1 +wScriptTextAddr:: ds 2 ; d44f + ds 1 wWildEncounterCooldown:: ds 1 -wd453:: ds 1 -wd454:: ds 1 +wXYComparePointer:: ds 2 ds 4 wBattleScriptFlags:: ds 2 @@ -2494,8 +2455,7 @@ CurTimeOfDay:: ; d848 ds 1 -wSecretID:: ds 1 -wd84b:: ds 1 +wSecretID:: ds 2 StatusFlags:: ; d84c ; 0 - pokedex ; 1 - unown dex @@ -2581,7 +2541,8 @@ PlayerState:: ; d95d ds 1 wHallOfFameCount:: ds 2 -wTradeFlags:: ds 2 +wTradeFlags:: flag_array 6 ; d960 + ds 1 MooMooBerries:: ; d962 ds 1 ; how many berries fed to MooMoo UndergroundSwitchPositions:: ; d963 @@ -2679,8 +2640,8 @@ wMobileBattleRoomTrigger:: ds 1 ; d9c0 ;SECTION "Events", WRAMX, BANK [1] -wJackFightCount:: ds 1 - ds 1 +wJackFightCount:: ds 1 ; d9f2 +wBeverlyFightCount:: ds 1 ; unused wHueyFightCount:: ds 1 wGavenFightCount:: ds 1 wBethFightCount:: ds 1 @@ -2693,23 +2654,21 @@ wLizFightCount:: ds 1 wAnthonyFightCount:: ds 1 wToddFightCount:: ds 1 wGinaFightCount:: ds 1 - -wda00:: ds 1 - +wIrwinFightCount:: ds 1 ; unused wArnieFightCount:: ds 1 wAlanFightCount:: ds 1 wDanaFightCount:: ds 1 wChadFightCount:: ds 1 - ds 1 +wDerekFightCount:: ds 1 ; unused wTullyFightCount:: ds 1 wBrentFightCount:: ds 1 wTiffanyFightCount:: ds 1 wVanceFightCount:: ds 1 wWiltonFightCount:: ds 1 - ds 1 +wKenjiFightCount:: ds 1 ; unused wParryFightCount:: ds 1 wErinFightCount:: ds 1 - +; da0e ds 100 EventFlags:: ; da72 @@ -2736,32 +2695,22 @@ BikeFlags:: ; dbf5 ds 1 ds 1 -wCurrentMapTriggerPointer:: ; dbf7 - ds 2 - -wCurrentCaller:: ds 2 -wCurrMapWarpCount:: ds 1 -wCurrMapWarpHeaderPointer:: ds 1 -wdbfd:: ds 1 -wCurrentMapXYTriggerCount:: ds 1 -wCurrentMapXYTriggerHeaderPointer:: ds 1 -wdc00:: ds 1 -wCurrentMapSignpostCount:: ds 1 -wCurrentMapSignpostHeaderPointer:: -wdc02:: ds 1 -wdc03:: ds 1 -wCurrentMapPersonEventCount:: -wdc04:: ds 1 -wCurrentMapPersonEventHeaderPointer:: -wdc05:: ds 1 -wdc06:: ds 1 -wCurrMapTriggerCount:: ds 1 -wCurrMapTriggerHeaderPointer:: ds 1 -wdc09:: ds 1 -wCurrMapCallbackCount:: ds 1 -wCurrMapCallbackHeaderPointer:: ds 2 -wdc0d:: ds 1 -wdc0e:: ds 1 +wCurrentMapTriggerPointer:: ds 2 ; dbf7 + +wCurrentCaller:: ds 2 ; dbf9 +wCurrMapWarpCount:: ds 1 ; dbfb +wCurrMapWarpHeaderPointer:: ds 2 ; dbfc +wCurrentMapXYTriggerCount:: ds 1 ; dbfe +wCurrentMapXYTriggerHeaderPointer:: ds 2 ; dbff +wCurrentMapSignpostCount:: ds 1 ; dc01 +wCurrentMapSignpostHeaderPointer:: ds 2 ; dc02 +wCurrentMapPersonEventCount:: ds 1 ; dc04 +wCurrentMapPersonEventHeaderPointer:: ds 2 ; dc05 +wCurrMapTriggerCount:: ds 1 ; dc07 +wCurrMapTriggerHeaderPointer:: ds 2 ; dc08 +wCurrMapCallbackCount:: ds 1 ; dc0a +wCurrMapCallbackHeaderPointer:: ds 2 ; dc0b + ds 2 ; Sprite id of each decoration Bed:: ; dc0f @@ -2782,40 +2731,32 @@ BigDoll:: ; dc16 ds 1 ; Items bought from Mom -wWhichMomItem:: -wdc17:: ds 1 -wWhichMomItemSet:: - ds 1 -MomItemTriggerBalance:: -wdc19:: ds 1 -wdc1a:: ds 1 -wdc1b:: ds 1 +wWhichMomItem:: ds 1 ; dc17 +wWhichMomItemSet:: ds 1 ; dc18 +MomItemTriggerBalance:: ds 3 ; dc19 wDailyResetTimer:: ds 2 DailyFlags:: ds 1 WeeklyFlags:: ds 1 SwarmFlags:: ds 1 -wdc21:: ds 1 -wdc22:: ds 1 + ds 2 wStartDay:: ds 1 -wdc24:: ds 2 -wdc26:: ds 1 + ds 3 -FruitTreeFlags:: ; dc27 - ds 1 +FruitTreeFlags:: flag_array NUM_FRUIT_TREES ; dc27 - ds 5 + ds 2 wLuckyNumberDayBuffer:: ds 2 ds 2 wSpecialPhoneCallID:: ds 1 ds 3 wBugContestStartTime:: ds 4 ; day, hour, min, sec -wdc39:: ds 1 +wUnusedTwoDayTimerOn:: ds 1 ; dc39 wUnusedTwoDayTimer:: ds 1 wUnusedTwoDayTimerStartDate:: ds 1 ds 4 -wdc40:: ds 1 +wMobileOrCable_LastSelection:: ds 1 wdc41:: ds 1 wdc42:: ds 8 wBuenasPassword:: ds 1 @@ -2842,6 +2783,7 @@ wParkBallsRemaining:: wSafariBallsRemaining:: ds 1 ; dc79 wSafariTimeRemaining:: ds 2 ; dc7a wPhoneList:: ds CONTACT_LIST_SIZE ; dc7c +; dc86 ds 23 wLuckyNumberShowFlag:: ds 2 ; dc9d wLuckyIDNumber:: ds 2 ; dc9f @@ -2966,11 +2908,7 @@ wEggNick:: ds PKMN_NAME_LENGTH ; df65 wEggOT:: ds NAME_LENGTH ; df70 wEggMon:: box_struct wEggMon ; df7b -wdf9b:: wBugContestSecondPartySpecies:: ds 1 - - -wdf9c:: wContestMon:: party_struct wContestMon ; df9c wDunsparceMapGroup:: ds 1 @@ -2997,8 +2935,7 @@ wRoamMons_LastMapGroup:: ds 1 wBestMagikarpLengthFeet:: ds 1 wBestMagikarpLengthInches:: ds 1 wMagikarpRecordHoldersName:: ds NAME_LENGTH -wdff5:: - +; dff5 wPokemonDataEnd:: wGameDataEnd:: |