2018-01-09 05:36:15 +00:00
|
|
|
INCLUDE "constants.asm"
|
2018-06-25 03:22:50 +00:00
|
|
|
|
2016-01-07 23:45:32 +00:00
|
|
|
INCLUDE "macros/wram.asm"
|
2014-03-05 02:41:30 +00:00
|
|
|
|
2017-12-27 04:07:46 +00:00
|
|
|
|
2017-12-27 04:18:05 +00:00
|
|
|
INCLUDE "vram.asm"
|
2017-12-27 04:07:46 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2014-09-19 19:44:48 +00:00
|
|
|
SECTION "Stack", WRAM0
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2018-01-23 22:39:09 +00:00
|
|
|
wStackBottom::
|
2015-10-19 20:49:29 +00:00
|
|
|
ds $100 - 1
|
2018-01-23 22:39:09 +00:00
|
|
|
wStackTop::
|
2014-09-19 19:44:48 +00:00
|
|
|
ds 1
|
2014-03-05 02:41:30 +00:00
|
|
|
|
|
|
|
|
2017-06-17 23:14:55 +00:00
|
|
|
SECTION "Audio RAM", WRAM0
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2014-03-05 02:41:30 +00:00
|
|
|
; nonzero if playing
|
2020-06-21 03:03:40 +00:00
|
|
|
wMusicPlaying:: db
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
wAudio::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wChannel1 - wChannel8
|
|
|
|
for n, 1, NUM_CHANNELS + 1
|
|
|
|
wChannel{d:n}:: channel_struct wChannel{d:n}
|
|
|
|
endr
|
2014-06-13 02:32:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
ds 1
|
2017-12-09 18:52:14 +00:00
|
|
|
|
|
|
|
wCurTrackDuty:: db
|
2019-09-02 08:40:58 +00:00
|
|
|
wCurTrackVolumeEnvelope:: db
|
2015-12-07 16:28:58 +00:00
|
|
|
wCurTrackFrequency:: dw
|
2019-04-19 15:35:27 +00:00
|
|
|
wUnusedBCDNumber:: db ; BCD value, dummied out
|
2017-12-09 18:52:14 +00:00
|
|
|
wCurNoteDuration:: db ; used in MusicE0 and LoadNote
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurMusicByte:: db
|
|
|
|
wCurChannel:: db
|
|
|
|
wVolume::
|
2018-08-26 02:38:57 +00:00
|
|
|
; corresponds to rNR50
|
2012-10-09 06:32:05 +00:00
|
|
|
; Channel control / ON-OFF / Volume (R/W)
|
|
|
|
; bit 7 - Vin->SO2 ON/OFF
|
|
|
|
; bit 6-4 - SO2 output level (volume) (# 0-7)
|
|
|
|
; bit 3 - Vin->SO1 ON/OFF
|
|
|
|
; bit 2-0 - SO1 output level (volume) (# 0-7)
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
2020-06-21 03:03:40 +00:00
|
|
|
wSoundOutput::
|
2018-08-26 02:38:57 +00:00
|
|
|
; corresponds to rNR51
|
2012-11-02 22:43:05 +00:00
|
|
|
; bit 4-7: ch1-4 so2 on/off
|
|
|
|
; bit 0-3: ch1-4 so1 on/off
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
2020-06-21 03:03:40 +00:00
|
|
|
wPitchSweep::
|
2019-09-02 08:40:58 +00:00
|
|
|
; corresponds to rNR10
|
|
|
|
; bit 7: unused
|
|
|
|
; bit 4-6: sweep time
|
|
|
|
; bit 3: sweep direction
|
|
|
|
; but 0-2: sweep shift
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMusicID:: dw
|
|
|
|
wMusicBank:: db
|
|
|
|
wNoiseSampleAddress:: dw
|
|
|
|
wNoiseSampleDelay:: db
|
|
|
|
ds 1
|
|
|
|
wMusicNoiseSampleSet:: db
|
|
|
|
wSFXNoiseSampleSet:: db
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLowHealthAlarm::
|
2012-12-14 08:00:10 +00:00
|
|
|
; bit 7: on/off
|
|
|
|
; bit 4: pitch
|
|
|
|
; bit 0-3: counter
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMusicFade::
|
2012-11-02 22:43:05 +00:00
|
|
|
; fades volume over x frames
|
|
|
|
; bit 7: fade in/out
|
|
|
|
; bit 0-5: number of frames for each volume level
|
|
|
|
; $00 = none (default)
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
2020-06-21 03:03:40 +00:00
|
|
|
wMusicFadeCount:: db
|
|
|
|
wMusicFadeID:: dw
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2013-02-23 21:47:39 +00:00
|
|
|
ds 5
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCryPitch:: dw
|
|
|
|
wCryLength:: dw
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLastVolume:: db
|
|
|
|
wUnusedMusicF9Flag:: db
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wSFXPriority::
|
2012-11-02 22:43:05 +00:00
|
|
|
; if nonzero, turn off music when playing sfx
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
|
|
|
|
2012-11-02 22:43:05 +00:00
|
|
|
ds 1
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2018-01-23 22:39:09 +00:00
|
|
|
wChannel1JumpCondition:: db
|
|
|
|
wChannel2JumpCondition:: db
|
|
|
|
wChannel3JumpCondition:: db
|
|
|
|
wChannel4JumpCondition:: db
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wStereoPanningMask:: db
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCryTracks::
|
2012-11-02 22:43:05 +00:00
|
|
|
; plays only in left or right track depending on what side the monster is on
|
|
|
|
; both tracks active outside of battle
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
|
|
|
|
|
|
|
wSFXDuration:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurSFX::
|
2012-10-12 00:35:22 +00:00
|
|
|
; id of sfx currently playing
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
2020-10-26 19:45:57 +00:00
|
|
|
|
|
|
|
wAudioEnd::
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMapMusic:: db
|
2017-12-09 18:52:14 +00:00
|
|
|
|
|
|
|
wDontPlayMapMusicOnReload:: db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2014-09-19 19:44:48 +00:00
|
|
|
SECTION "WRAM", WRAM0
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLZAddress:: dw
|
|
|
|
wLZBank:: db
|
2014-07-18 12:33:27 +00:00
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
ds 1
|
2014-07-18 12:33:27 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
wBoxAlignment:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wInputType:: db
|
|
|
|
wAutoInputAddress:: dw
|
|
|
|
wAutoInputBank:: db
|
|
|
|
wAutoInputLength:: db
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2018-09-16 00:15:55 +00:00
|
|
|
wDebugFlags:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wGameLogicPaused:: db
|
2017-12-09 18:52:14 +00:00
|
|
|
wSpriteUpdatesEnabled:: db
|
2017-12-09 20:28:03 +00:00
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wUnusedScriptByte:: db
|
2017-12-09 20:28:03 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
wMapTimeOfDay:: db
|
2017-12-09 20:28:03 +00:00
|
|
|
|
2015-12-15 01:06:41 +00:00
|
|
|
ds 3
|
2017-12-09 20:28:03 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
wPrinterConnectionOpen:: db
|
|
|
|
wPrinterOpcode:: db
|
2018-01-11 20:36:11 +00:00
|
|
|
wPrevDexEntry:: db
|
2017-12-09 18:52:14 +00:00
|
|
|
wDisableTextAcceleration:: db
|
2018-09-09 19:27:23 +00:00
|
|
|
wPrevLandmark:: db
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurLandmark:: db
|
2017-12-09 18:52:14 +00:00
|
|
|
wLandmarkSignTimer:: dw
|
2018-07-27 22:45:33 +00:00
|
|
|
|
|
|
|
wLinkMode::
|
|
|
|
; a LINK_* value for the link type
|
2020-06-21 03:03:40 +00:00
|
|
|
db
|
2012-12-23 08:21:19 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wScriptVar:: db
|
2012-09-11 03:36:50 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
wPlayerNextMovement:: db
|
|
|
|
wPlayerMovement:: db
|
2020-06-16 03:28:24 +00:00
|
|
|
|
2015-11-13 23:59:49 +00:00
|
|
|
ds 2
|
2020-06-16 03:28:24 +00:00
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
wMovementObject::
|
2017-12-23 16:34:55 +00:00
|
|
|
db
|
2019-04-19 15:35:27 +00:00
|
|
|
wMovementDataBank:: db
|
|
|
|
wMovementDataAddress:: dw
|
2020-10-23 01:25:40 +00:00
|
|
|
wIndexedMovement2Pointer:: dw
|
2020-06-16 03:28:24 +00:00
|
|
|
|
|
|
|
ds 2
|
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
wMovementByteWasControlSwitch:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
|
|
|
wObjectPriorities:: ds NUM_OBJECT_STRUCTS
|
2015-11-14 19:41:47 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
|
|
|
wMovementPointer:: dw
|
2020-06-16 03:28:24 +00:00
|
|
|
ds 3
|
2020-06-21 03:03:40 +00:00
|
|
|
wTempObjectCopyMapObjectIndex:: db
|
|
|
|
wTempObjectCopySprite:: db
|
|
|
|
wTempObjectCopySpriteVTile:: db
|
|
|
|
wTempObjectCopyPalette:: db
|
|
|
|
wTempObjectCopyMovement:: db
|
|
|
|
wTempObjectCopyRange:: db
|
|
|
|
wTempObjectCopyX:: db
|
|
|
|
wTempObjectCopyY:: db
|
|
|
|
wTempObjectCopyRadius:: db
|
|
|
|
ENDU
|
2015-11-14 19:41:47 +00:00
|
|
|
|
2015-11-12 04:38:57 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTileDown:: db
|
|
|
|
wTileUp:: db
|
|
|
|
wTileLeft:: db
|
|
|
|
wTileRight:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTilePermissions::
|
2012-11-24 02:19:02 +00:00
|
|
|
; set if tile behavior prevents
|
|
|
|
; you from walking in that direction
|
|
|
|
; bit 3: down
|
|
|
|
; bit 2: up
|
|
|
|
; bit 1: left
|
|
|
|
; bit 0: right
|
2017-12-09 18:52:14 +00:00
|
|
|
db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
|
2017-06-17 23:14:55 +00:00
|
|
|
SECTION "wSpriteAnims", WRAM0
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2020-10-30 19:39:08 +00:00
|
|
|
wSpriteAnimData::
|
|
|
|
|
|
|
|
wSpriteAnimDict::
|
|
|
|
; wSpriteAnimDict pairs keys with values
|
|
|
|
; keys: SPRITE_ANIM_DICT_* indexes (taken from SpriteAnimSeqData)
|
|
|
|
; values: vTiles0 offsets
|
|
|
|
ds NUM_SPRITEANIMDICT_ENTRIES * 2
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
wSpriteAnimationStructs::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wSpriteAnim1 - wSpriteAnim10
|
|
|
|
for n, 1, NUM_SPRITE_ANIM_STRUCTS + 1
|
2017-12-09 18:52:14 +00:00
|
|
|
; field 0: index
|
|
|
|
; fields 1-3: loaded from SpriteAnimSeqData
|
2021-04-27 16:11:39 +00:00
|
|
|
wSpriteAnim{d:n}:: sprite_anim_struct wSpriteAnim{d:n}
|
|
|
|
endr
|
2017-12-09 18:52:14 +00:00
|
|
|
wSpriteAnimationStructsEnd::
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-09 18:52:14 +00:00
|
|
|
; mobile data
|
2019-08-23 02:10:58 +00:00
|
|
|
wMobileWRAM::
|
2020-06-21 03:03:40 +00:00
|
|
|
wMobileErrorCodeBuffer:: ds 3
|
2015-02-08 08:03:32 +00:00
|
|
|
wc303:: ds 2
|
|
|
|
wc305:: ds 1
|
|
|
|
wc306:: ds 1
|
|
|
|
wc307:: ds 1
|
|
|
|
wc308:: ds 1
|
|
|
|
wc309:: ds 1
|
|
|
|
wc30a:: ds 1
|
|
|
|
wc30b:: ds 1
|
|
|
|
wc30c:: ds 1
|
|
|
|
wc30d:: ds 1
|
|
|
|
wc30e:: ds 1
|
|
|
|
wc30f:: ds 1
|
|
|
|
wc310:: ds 1
|
|
|
|
wc311:: ds 1
|
|
|
|
wc312:: ds 1
|
|
|
|
wc313:: ds 1
|
2019-04-27 17:50:24 +00:00
|
|
|
wc314:: ds 5
|
|
|
|
wc319:: db
|
|
|
|
wc31a:: db
|
|
|
|
wc31b:: db
|
|
|
|
wc31c:: db
|
|
|
|
wc31d:: db
|
|
|
|
wc31e:: db
|
|
|
|
wc31f:: db
|
|
|
|
wc320:: ds 38
|
|
|
|
wc346:: ds 102
|
2017-12-09 18:52:14 +00:00
|
|
|
wc3ac:: ds 8
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
wSpriteAnimCount:: db
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurSpriteOAMAddr:: db
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurIcon:: db
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
wCurIconTile:: db
|
2020-12-23 21:29:30 +00:00
|
|
|
UNION
|
|
|
|
wSpriteAnimID::
|
|
|
|
wCurSpriteOAMFlags:: db
|
|
|
|
NEXTU
|
|
|
|
wSpriteAnimAddrBackup:: dw
|
|
|
|
ENDU
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurAnimVTile:: db
|
|
|
|
wCurAnimXCoord:: db
|
|
|
|
wCurAnimYCoord:: db
|
|
|
|
wCurAnimXOffset:: db
|
|
|
|
wCurAnimYOffset:: db
|
2017-12-09 18:52:14 +00:00
|
|
|
wGlobalAnimYOffset:: db
|
|
|
|
wGlobalAnimXOffset:: db
|
2020-10-30 19:39:08 +00:00
|
|
|
|
|
|
|
wSpriteAnimDataEnd::
|
2015-11-13 05:49:27 +00:00
|
|
|
|
2016-01-10 22:44:09 +00:00
|
|
|
ds 11
|
2017-09-24 07:27:12 +00:00
|
|
|
|
2017-12-09 18:52:14 +00:00
|
|
|
; mobile data
|
2015-02-08 08:03:32 +00:00
|
|
|
wc3cc:: ds 1
|
|
|
|
wc3cd:: ds 31
|
|
|
|
wc3ec:: ds 1
|
|
|
|
wc3ed:: ds 1
|
|
|
|
wc3ee:: ds 1
|
|
|
|
wc3ef:: ds 1
|
|
|
|
wc3f0:: ds 1
|
|
|
|
wc3f1:: ds 1
|
|
|
|
wc3f2:: ds 1
|
|
|
|
wc3f3:: ds 1
|
|
|
|
wc3f4:: ds 1
|
|
|
|
wc3f5:: ds 1
|
|
|
|
wc3f6:: ds 1
|
|
|
|
wc3f7:: ds 1
|
|
|
|
wc3f8:: ds 1
|
|
|
|
wc3f9:: ds 1
|
|
|
|
wc3fa:: ds 1
|
|
|
|
wc3fb:: ds 1
|
2017-09-24 07:27:12 +00:00
|
|
|
wc3fc:: ds 1
|
|
|
|
ds 3
|
2019-08-23 02:10:58 +00:00
|
|
|
wMobileWRAMEnd::
|
2014-09-19 19:44:48 +00:00
|
|
|
|
|
|
|
|
2017-06-17 23:14:55 +00:00
|
|
|
SECTION "Sprites", WRAM0
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wVirtualOAM::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wVirtualOAMSprite00 - wVirtualOAMSprite39
|
|
|
|
for n, NUM_SPRITE_OAM_STRUCTS
|
|
|
|
wVirtualOAMSprite{02d:n}:: sprite_oam_struct wVirtualOAMSprite{02d:n}
|
|
|
|
endr
|
2018-01-30 19:55:20 +00:00
|
|
|
wVirtualOAMEnd::
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2014-09-19 19:44:48 +00:00
|
|
|
|
|
|
|
SECTION "Tilemap", WRAM0
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTilemap::
|
2012-12-14 08:00:10 +00:00
|
|
|
; 20x18 grid of 8x8 tiles
|
2014-06-13 01:32:42 +00:00
|
|
|
ds SCREEN_WIDTH * SCREEN_HEIGHT
|
2020-02-13 17:30:13 +00:00
|
|
|
wTilemapEnd::
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
; This union spans 480 bytes.
|
2021-05-09 16:26:28 +00:00
|
|
|
SECTION UNION "Miscellaneous", WRAM0
|
|
|
|
|
2018-03-19 15:36:14 +00:00
|
|
|
; surrounding tiles
|
2019-01-31 00:43:01 +00:00
|
|
|
; This buffer determines the size for the rest of the union;
|
|
|
|
; it uses exactly 480 bytes.
|
2018-03-19 15:36:14 +00:00
|
|
|
wSurroundingTiles:: ds SURROUNDING_WIDTH * SURROUNDING_HEIGHT
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous", WRAM0
|
|
|
|
|
2018-03-19 15:36:14 +00:00
|
|
|
; box save buffer
|
2019-01-31 00:43:01 +00:00
|
|
|
; SaveBoxAddress uses this buffer in three steps because it
|
2019-02-08 20:38:31 +00:00
|
|
|
; needs more space than the buffer can hold.
|
2018-03-19 15:36:14 +00:00
|
|
|
wBoxPartialData:: ds 480
|
|
|
|
wBoxPartialDataEnd::
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous", WRAM0
|
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
; battle tower temp struct
|
2015-11-07 19:38:52 +00:00
|
|
|
wBT_OTTemp:: battle_tower_struct wBT_OTTemp
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous", WRAM0
|
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
; battle data
|
2016-01-12 17:46:18 +00:00
|
|
|
wBattle::
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyMoveStruct:: move_struct wEnemyMoveStruct
|
|
|
|
wPlayerMoveStruct:: move_struct wPlayerMoveStruct
|
2016-01-10 22:44:09 +00:00
|
|
|
|
2021-03-17 20:16:02 +00:00
|
|
|
wEnemyMonNickname:: ds MON_NAME_LENGTH
|
|
|
|
wBattleMonNickname:: ds MON_NAME_LENGTH
|
2013-03-26 09:22:22 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleMon:: battle_struct wBattleMon
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2015-12-07 16:28:58 +00:00
|
|
|
ds 2
|
2013-09-08 02:47:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wWildMon:: db
|
2015-11-06 19:45:10 +00:00
|
|
|
ds 1
|
2020-10-26 19:45:57 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyTrainerItem1:: db
|
|
|
|
wEnemyTrainerItem2:: db
|
|
|
|
wEnemyTrainerBaseReward:: db
|
|
|
|
wEnemyTrainerAIFlags:: ds 3
|
|
|
|
wOTClassName:: ds TRAINER_CLASS_NAME_LENGTH
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurOTMon:: db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2015-11-08 02:04:54 +00:00
|
|
|
wBattleParticipantsNotFainted::
|
|
|
|
; Bit array. Bits 0 - 5 correspond to party members 1 - 6.
|
|
|
|
; Bit set if the mon appears in battle.
|
|
|
|
; Bit cleared if the mon faints.
|
|
|
|
; Backed up if the enemy switches.
|
|
|
|
; All bits cleared if the enemy faints.
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2015-11-08 02:04:54 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTypeModifier::
|
2013-03-26 09:22:22 +00:00
|
|
|
; >10: super-effective
|
|
|
|
; 10: normal
|
|
|
|
; <10: not very effective
|
2013-04-19 07:50:13 +00:00
|
|
|
; bit 7: stab
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2013-03-26 09:22:22 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCriticalHit::
|
2015-12-26 23:11:55 +00:00
|
|
|
; 0 if not critical
|
|
|
|
; 1 for a critical hit
|
|
|
|
; 2 for a OHKO
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wAttackMissed::
|
2013-03-26 09:22:22 +00:00
|
|
|
; nonzero for a miss
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
wPlayerSubStatus1:: db
|
|
|
|
wPlayerSubStatus2:: db
|
|
|
|
wPlayerSubStatus3:: db
|
|
|
|
wPlayerSubStatus4:: db
|
|
|
|
wPlayerSubStatus5:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemySubStatus1:: db
|
|
|
|
wEnemySubStatus2:: db
|
|
|
|
wEnemySubStatus3:: db
|
|
|
|
wEnemySubStatus4:: db
|
|
|
|
wEnemySubStatus5:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerRolloutCount:: db
|
|
|
|
wPlayerConfuseCount:: db
|
|
|
|
wPlayerToxicCount:: db
|
|
|
|
wPlayerDisableCount:: db
|
|
|
|
wPlayerEncoreCount:: db
|
|
|
|
wPlayerPerishCount:: db
|
|
|
|
wPlayerFuryCutterCount:: db
|
|
|
|
wPlayerProtectCount:: db
|
|
|
|
|
|
|
|
wEnemyRolloutCount:: db
|
|
|
|
wEnemyConfuseCount:: db
|
|
|
|
wEnemyToxicCount:: db
|
|
|
|
wEnemyDisableCount:: db
|
|
|
|
wEnemyEncoreCount:: db
|
|
|
|
wEnemyPerishCount:: db
|
|
|
|
wEnemyFuryCutterCount:: db
|
|
|
|
wEnemyProtectCount:: db
|
|
|
|
|
|
|
|
wPlayerDamageTaken:: dw
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemyDamageTaken:: dw
|
2020-06-21 03:03:40 +00:00
|
|
|
|
|
|
|
wBattleReward:: ds 3
|
2020-08-30 00:35:49 +00:00
|
|
|
|
|
|
|
wBattleAnimParam:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleScriptBuffer:: ds 40
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleScriptBufferAddress:: dw
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTurnEnded:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2015-11-09 21:41:09 +00:00
|
|
|
ds 1
|
2013-06-13 20:10:39 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerStats::
|
2020-10-26 19:45:57 +00:00
|
|
|
wPlayerAttack:: dw
|
2018-01-23 22:39:09 +00:00
|
|
|
wPlayerDefense:: dw
|
2020-10-26 19:45:57 +00:00
|
|
|
wPlayerSpeed:: dw
|
|
|
|
wPlayerSpAtk:: dw
|
|
|
|
wPlayerSpDef:: dw
|
2013-06-13 20:10:39 +00:00
|
|
|
ds 1
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyStats::
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemyAttack:: dw
|
2018-01-23 22:39:09 +00:00
|
|
|
wEnemyDefense:: dw
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemySpeed:: dw
|
|
|
|
wEnemySpAtk:: dw
|
|
|
|
wEnemySpDef:: dw
|
2013-06-13 20:10:39 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerStatLevels::
|
2020-10-26 19:45:57 +00:00
|
|
|
wPlayerAtkLevel:: db
|
|
|
|
wPlayerDefLevel:: db
|
|
|
|
wPlayerSpdLevel:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerSAtkLevel:: db
|
|
|
|
wPlayerSDefLevel:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wPlayerAccLevel:: db
|
|
|
|
wPlayerEvaLevel:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
ds 1
|
2013-03-26 09:22:22 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyStatLevels::
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemyAtkLevel:: db
|
|
|
|
wEnemyDefLevel:: db
|
|
|
|
wEnemySpdLevel:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemySAtkLevel:: db
|
|
|
|
wEnemySDefLevel:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemyAccLevel:: db
|
|
|
|
wEnemyEvaLevel:: db
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemyTurnsTaken:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerTurnsTaken:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 1
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerSubstituteHP:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemySubstituteHP:: db
|
2014-06-11 06:08:07 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wUnusedPlayerLockedMove:: db
|
2014-06-11 06:08:07 +00:00
|
|
|
ds 1
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurPlayerMove:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wCurEnemyMove:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLinkBattleRNCount::
|
2012-12-14 08:00:10 +00:00
|
|
|
; how far through the prng stream
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyItemState:: db
|
2016-01-12 17:46:18 +00:00
|
|
|
ds 2
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurEnemyMoveNum:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyHPAtTimeOfPlayerSwitch:: dw
|
|
|
|
wPayDayMoney:: ds 3
|
2014-06-14 04:18:14 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
wSafariMonAngerCount:: db ; unreferenced
|
2017-12-09 19:22:58 +00:00
|
|
|
wSafariMonEating:: db
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 1
|
2017-12-09 19:22:58 +00:00
|
|
|
wEnemyBackupDVs:: dw ; used when enemy is transformed
|
2020-06-21 03:03:40 +00:00
|
|
|
wAlreadyDisobeyed:: db
|
2013-03-26 09:22:22 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wDisabledMove:: db
|
|
|
|
wEnemyDisabledMove:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
wWhichMonFaintedFirst:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
; exists so you can't counter on switch
|
2020-06-21 03:03:40 +00:00
|
|
|
wLastPlayerCounterMove:: db
|
|
|
|
wLastEnemyCounterMove:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyMinimized:: db
|
2013-03-27 22:50:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wAlreadyFailed:: db
|
2013-03-27 22:50:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleParticipantsIncludingFainted:: db
|
|
|
|
wBattleLowHealthAlarm:: db
|
|
|
|
wPlayerMinimized:: db
|
|
|
|
wPlayerScreens::
|
2013-05-03 05:29:57 +00:00
|
|
|
; bit
|
|
|
|
; 0 spikes
|
2020-07-08 19:30:23 +00:00
|
|
|
; 1
|
|
|
|
; 2 safeguard
|
|
|
|
; 3 light screen
|
|
|
|
; 4 reflect
|
|
|
|
; 5-7 unused
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2013-04-20 06:57:11 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyScreens::
|
2018-01-23 22:39:09 +00:00
|
|
|
; see wPlayerScreens
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2013-04-20 06:57:11 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerSafeguardCount:: db
|
|
|
|
wPlayerLightScreenCount:: db
|
|
|
|
wPlayerReflectCount:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
ds 1
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemySafeguardCount:: db
|
|
|
|
wEnemyLightScreenCount:: db
|
|
|
|
wEnemyReflectCount:: db
|
2020-05-18 00:59:15 +00:00
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 1
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleWeather::
|
2012-12-14 08:00:10 +00:00
|
|
|
; 00 normal
|
|
|
|
; 01 rain
|
|
|
|
; 02 sun
|
|
|
|
; 03 sandstorm
|
|
|
|
; 04 rain stopped
|
|
|
|
; 05 sunliight faded
|
|
|
|
; 06 sandstorm subsided
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wWeatherCount::
|
2012-12-14 08:00:10 +00:00
|
|
|
; # turns remaining
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLoweredStat:: db
|
|
|
|
wEffectFailed:: db
|
|
|
|
wFailedMessage:: db
|
|
|
|
wEnemyGoesFirst:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerIsSwitching:: db
|
|
|
|
wEnemyIsSwitching:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerUsedMoves::
|
2012-12-14 08:00:10 +00:00
|
|
|
; add a move that has been used once by the player
|
|
|
|
; added in order of use
|
2015-02-11 22:17:45 +00:00
|
|
|
ds NUM_MOVES
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyAISwitchScore:: db
|
|
|
|
wEnemySwitchMonParam:: db
|
|
|
|
wEnemySwitchMonIndex:: db
|
|
|
|
wTempLevel:: db
|
|
|
|
wLastPlayerMon:: db
|
|
|
|
wLastPlayerMove:: db
|
|
|
|
wLastEnemyMove:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerFutureSightCount:: db
|
|
|
|
wEnemyFutureSightCount:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wGivingExperienceToExpShareHolders:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
wBackupEnemyMonBaseStats:: ds NUM_EXP_STATS
|
2020-06-21 03:03:40 +00:00
|
|
|
wBackupEnemyMonCatchRate:: db
|
|
|
|
wBackupEnemyMonBaseExp:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerFutureSightDamage:: dw
|
|
|
|
wEnemyFutureSightDamage:: dw
|
|
|
|
wPlayerRageCounter:: db
|
|
|
|
wEnemyRageCounter:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBeatUpHitAtLeastOnce:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerTrappingMove:: db
|
|
|
|
wEnemyTrappingMove:: db
|
|
|
|
wPlayerWrapCount:: db
|
|
|
|
wEnemyWrapCount:: db
|
|
|
|
wPlayerCharging:: db
|
|
|
|
wEnemyCharging:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleEnded:: db
|
2013-06-17 22:19:45 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wWildMonMoves:: ds NUM_MOVES
|
|
|
|
wWildMonPP:: ds NUM_MOVES
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wAmuletCoin:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wSomeoneIsRampaging:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerJustGotFrozen:: db
|
|
|
|
wEnemyJustGotFrozen:: db
|
2014-06-13 01:32:42 +00:00
|
|
|
wBattleEnd::
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2019-02-08 20:38:31 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
SECTION UNION "Miscellaneous", WRAM0
|
|
|
|
|
2020-12-09 02:24:48 +00:00
|
|
|
; link patch lists
|
|
|
|
wPlayerPatchLists:: ds 200
|
|
|
|
wOTPatchLists:: ds 200
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous", WRAM0
|
|
|
|
|
|
|
|
; mobile
|
2020-12-09 02:24:48 +00:00
|
|
|
wMobileTransferData:: ds 480
|
2019-10-20 22:27:34 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous", WRAM0
|
2019-02-08 20:38:31 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
; This union spans 200 bytes.
|
|
|
|
UNION
|
2019-02-08 20:38:31 +00:00
|
|
|
; timeset temp storage
|
|
|
|
wTimeSetBuffer::
|
|
|
|
ds 20
|
2020-06-21 03:03:40 +00:00
|
|
|
wInitHourBuffer:: db
|
2019-02-08 20:38:31 +00:00
|
|
|
ds 9
|
2020-06-21 03:03:40 +00:00
|
|
|
wInitMinuteBuffer:: db
|
2019-02-08 20:38:31 +00:00
|
|
|
ds 19
|
|
|
|
wTimeSetBufferEnd::
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-02-08 20:38:31 +00:00
|
|
|
; hall of fame temp struct
|
|
|
|
wHallOfFameTemp:: hall_of_fame wHallOfFameTemp
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-02-08 20:38:31 +00:00
|
|
|
; odd egg
|
|
|
|
wOddEgg:: party_struct wOddEgg
|
|
|
|
wOddEggName:: ds MON_NAME_LENGTH
|
2021-03-17 20:16:02 +00:00
|
|
|
wOddEggOT:: ds NAME_LENGTH
|
2019-02-08 20:38:31 +00:00
|
|
|
|
2020-10-23 20:04:15 +00:00
|
|
|
NEXTU
|
|
|
|
; debug mon color picker
|
|
|
|
wDebugMiddleColors::
|
|
|
|
wDebugLightColor:: ds 2
|
|
|
|
wDebugDarkColor:: ds 2
|
|
|
|
ds 6
|
|
|
|
wDebugRedChannel:: db
|
|
|
|
wDebugGreenChannel:: db
|
|
|
|
wDebugBlueChannel:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; debug tileset color picker
|
|
|
|
wDebugPalette::
|
|
|
|
wDebugWhiteTileColor:: ds 2
|
|
|
|
wDebugLightTileColor:: ds 2
|
|
|
|
wDebugDarkTileColor:: ds 2
|
|
|
|
wDebugBlackTileColor:: ds 2
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2020-06-13 22:48:26 +00:00
|
|
|
wc608:: ds 16
|
|
|
|
wc618:: ds 37
|
2019-02-08 20:38:31 +00:00
|
|
|
wc63d:: ds 5
|
|
|
|
wc642:: ds 5
|
2020-06-13 22:48:26 +00:00
|
|
|
wc647:: ds 1
|
|
|
|
wc648:: ds 2
|
|
|
|
wc64a:: ds 30
|
2019-02-08 20:38:31 +00:00
|
|
|
wc668:: ds 32
|
|
|
|
wc688:: ds 2
|
2020-06-13 22:48:26 +00:00
|
|
|
wc68a:: ds 30
|
|
|
|
wc6a8:: ds 40
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2019-02-08 20:38:31 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
; This union spans 280 bytes.
|
|
|
|
UNION
|
2019-02-08 20:38:31 +00:00
|
|
|
; pokedex
|
2020-06-21 03:03:40 +00:00
|
|
|
wPokedexDataStart::
|
2019-02-08 20:38:31 +00:00
|
|
|
wPokedexOrder:: ds $100 ; >= NUM_POKEMON
|
|
|
|
wPokedexOrderEnd::
|
|
|
|
wDexListingScrollOffset:: db ; offset of the first displayed entry from the start
|
|
|
|
wDexListingCursor:: db ; Dex cursor
|
|
|
|
wDexListingEnd:: db ; Last mon to display
|
|
|
|
wDexListingHeight:: db ; number of entries displayed at once in the dex listing
|
|
|
|
wCurDexMode:: db ; Pokedex Mode
|
|
|
|
wDexSearchMonType1:: db ; first type to search
|
|
|
|
wDexSearchMonType2:: db ; second type to search
|
|
|
|
wDexSearchResultCount:: db
|
|
|
|
wDexArrowCursorPosIndex:: db
|
|
|
|
wDexArrowCursorDelayCounter:: db
|
|
|
|
wDexArrowCursorBlinkCounter:: db
|
|
|
|
wDexSearchSlowpokeFrame:: db
|
|
|
|
wUnlockedUnownMode:: db
|
|
|
|
wDexCurUnownIndex:: db
|
|
|
|
wDexUnownCount:: db
|
|
|
|
wDexConvertedMonType:: db ; mon type converted from dex search mon type
|
|
|
|
wDexListingScrollOffsetBackup:: db
|
|
|
|
wDexListingCursorBackup:: db
|
|
|
|
wBackupDexListingCursor:: db
|
|
|
|
wBackupDexListingPage:: db
|
|
|
|
wDexCurLocation:: db
|
|
|
|
if DEF(_CRYSTAL11)
|
|
|
|
wPokedexStatus:: db
|
|
|
|
wPokedexDataEnd::
|
|
|
|
else
|
|
|
|
wPokedexDataEnd:: ds 1
|
|
|
|
endc
|
|
|
|
ds 2
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-02-08 20:38:31 +00:00
|
|
|
; pokegear
|
2020-12-23 21:29:30 +00:00
|
|
|
wPokegearPhoneDisplayPosition:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wPokegearPhoneCursorPosition:: db
|
|
|
|
wPokegearPhoneScrollPosition:: db
|
|
|
|
wPokegearPhoneSelectedPerson:: db
|
|
|
|
wPokegearPhoneSubmenuCursor:: db
|
|
|
|
wPokegearMapCursorObjectPointer:: dw
|
|
|
|
wPokegearMapCursorLandmark:: db
|
|
|
|
wPokegearMapPlayerIconLandmark:: db
|
|
|
|
wPokegearRadioChannelBank:: db
|
|
|
|
wPokegearRadioChannelAddr:: dw
|
|
|
|
wPokegearRadioMusicPlaying:: db
|
|
|
|
|
|
|
|
NEXTU
|
2019-02-08 20:38:31 +00:00
|
|
|
; trade
|
2016-01-09 21:28:22 +00:00
|
|
|
wPlayerTrademon:: trademon wPlayerTrademon
|
|
|
|
wOTTrademon:: trademon wOTTrademon
|
2017-12-09 19:22:58 +00:00
|
|
|
wTradeAnimAddress:: dw
|
2016-01-09 21:28:22 +00:00
|
|
|
wLinkPlayer1Name:: ds NAME_LENGTH
|
|
|
|
wLinkPlayer2Name:: ds NAME_LENGTH
|
2017-12-09 19:22:58 +00:00
|
|
|
wLinkTradeSendmonSpecies:: db
|
|
|
|
wLinkTradeGetmonSpecies:: db
|
2015-11-30 02:34:59 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2016-01-10 04:41:03 +00:00
|
|
|
; naming screen
|
2020-06-21 03:03:40 +00:00
|
|
|
wNamingScreenDestinationPointer:: dw
|
|
|
|
wNamingScreenCurNameLength:: db
|
|
|
|
wNamingScreenMaxNameLength:: db
|
|
|
|
wNamingScreenType:: db
|
|
|
|
wNamingScreenCursorObjectPointer:: dw
|
|
|
|
wNamingScreenLastCharacter:: db
|
|
|
|
wNamingScreenStringEntryCoord:: dw
|
|
|
|
|
|
|
|
NEXTU
|
2017-12-09 19:22:58 +00:00
|
|
|
; slot machine
|
2020-06-21 03:03:40 +00:00
|
|
|
wSlots::
|
2016-01-09 21:28:22 +00:00
|
|
|
wReel1:: slot_reel wReel1
|
|
|
|
wReel2:: slot_reel wReel2
|
|
|
|
wReel3:: slot_reel wReel3
|
|
|
|
wReel1Stopped:: ds 3
|
|
|
|
wReel2Stopped:: ds 3
|
|
|
|
wReel3Stopped:: ds 3
|
2017-12-09 19:22:58 +00:00
|
|
|
wSlotBias:: db
|
|
|
|
wSlotBet:: db
|
|
|
|
wFirstTwoReelsMatching:: db
|
|
|
|
wFirstTwoReelsMatchingSevens:: db
|
|
|
|
wSlotMatched:: db
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurReelStopped:: ds 3
|
2017-12-09 19:22:58 +00:00
|
|
|
wPayout:: dw
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurReelXCoord:: db
|
|
|
|
wCurReelYCoord:: db
|
2016-01-09 21:28:22 +00:00
|
|
|
ds 2
|
2017-12-09 19:22:58 +00:00
|
|
|
wSlotBuildingMatch:: db
|
2016-01-09 21:28:22 +00:00
|
|
|
wSlotsDataEnd::
|
|
|
|
ds 28
|
|
|
|
wSlotsEnd::
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-09 19:22:58 +00:00
|
|
|
; card flip
|
2020-10-26 19:45:57 +00:00
|
|
|
wDeck:: ds 4 * 6
|
2016-01-09 21:28:22 +00:00
|
|
|
wDeckEnd::
|
2017-12-09 19:22:58 +00:00
|
|
|
wCardFlipNumCardsPlayed:: db
|
|
|
|
wCardFlipFaceUpCard:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wDiscardPile:: ds 4 * 6
|
2016-01-09 21:28:22 +00:00
|
|
|
wDiscardPileEnd::
|
|
|
|
|
2021-10-31 03:01:39 +00:00
|
|
|
; beta poker game
|
|
|
|
wBetaPokerSGBPals:: dw
|
|
|
|
ds 1
|
|
|
|
wBetaPokerSGBAttr:: db
|
|
|
|
wBetaPokerSGBCol:: db
|
|
|
|
wBetaPokerSGBRow:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2020-11-09 00:32:57 +00:00
|
|
|
; unused memory game
|
|
|
|
wMemoryGameCards:: ds 9 * 5
|
|
|
|
wMemoryGameCardsEnd::
|
|
|
|
wMemoryGameLastCardPicked:: db
|
|
|
|
wMemoryGameCard1:: db
|
|
|
|
wMemoryGameCard2:: db
|
|
|
|
wMemoryGameCard1Location:: db
|
|
|
|
wMemoryGameCard2Location:: db
|
|
|
|
wMemoryGameNumberTriesRemaining:: db
|
|
|
|
wMemoryGameLastMatches:: ds 5
|
|
|
|
wMemoryGameCounter:: db
|
|
|
|
wMemoryGameNumCardsMatched:: db
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
NEXTU
|
|
|
|
; unown puzzle
|
|
|
|
wPuzzlePieces:: ds 6 * 6
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-09 19:22:58 +00:00
|
|
|
; mobile data
|
2018-07-17 21:17:18 +00:00
|
|
|
wc6d0:: ds 56
|
|
|
|
wc708:: db
|
|
|
|
wc709:: db
|
|
|
|
wc70a:: db
|
|
|
|
wc70b:: db
|
|
|
|
wc70c:: db
|
|
|
|
wc70d:: db
|
|
|
|
wc70e:: db
|
|
|
|
wc70f:: db
|
|
|
|
wc710:: db
|
|
|
|
wc711:: db
|
2019-04-27 17:50:24 +00:00
|
|
|
wc712:: ds 7
|
|
|
|
wc719:: ds 53
|
2017-12-09 19:22:58 +00:00
|
|
|
wc74e:: ds 107
|
|
|
|
wc7b9:: ds 1
|
|
|
|
wc7ba:: ds 1
|
|
|
|
wc7bb:: ds 2
|
|
|
|
wc7bd:: ds 19
|
|
|
|
wc7d0:: ds 1
|
|
|
|
wc7d1:: ds 1
|
|
|
|
wc7d2:: ds 1
|
2020-10-26 19:45:57 +00:00
|
|
|
wc7d3:: ds 2
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2015-08-20 04:14:15 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION "Unused Map Buffer", WRAM0
|
2019-02-08 20:38:31 +00:00
|
|
|
|
2019-04-19 15:35:27 +00:00
|
|
|
; This was a buffer for map-related pointers in the 1997 G/S prototype.
|
|
|
|
; See wMapBuffer in pokegold-spaceworld's wram.asm.
|
|
|
|
wUnusedMapBuffer:: ds 24
|
|
|
|
wUnusedMapBufferEnd::
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2018-03-19 15:36:14 +00:00
|
|
|
; overworld map blocks
|
2020-06-21 03:03:40 +00:00
|
|
|
wOverworldMapBlocks:: ds 1300
|
2018-03-19 15:36:14 +00:00
|
|
|
wOverworldMapBlocksEnd::
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
; GB Printer data
|
2020-10-26 19:45:57 +00:00
|
|
|
wGameboyPrinterRAM::
|
2017-12-09 19:22:58 +00:00
|
|
|
wGameboyPrinter2bppSource:: ds 40 tiles
|
2016-05-11 21:16:03 +00:00
|
|
|
wGameboyPrinter2bppSourceEnd::
|
2020-10-28 17:35:39 +00:00
|
|
|
wUnusedGameboyPrinterSafeCancelFlag:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
wPrinterRowIndex:: db
|
2016-06-06 22:23:00 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
; Printer data
|
2017-12-09 20:28:03 +00:00
|
|
|
wPrinterData:: ds 4
|
2020-06-21 03:03:40 +00:00
|
|
|
wPrinterChecksum:: dw
|
2017-12-09 19:22:58 +00:00
|
|
|
wPrinterHandshake:: db
|
2016-05-11 21:16:03 +00:00
|
|
|
wPrinterStatusFlags::
|
|
|
|
; bit 7: set if error 1 (battery low)
|
|
|
|
; bit 6: set if error 4 (too hot or cold)
|
|
|
|
; bit 5: set if error 3 (paper jammed or empty)
|
|
|
|
; if this and the previous byte are both $ff: error 2 (connection error)
|
2017-12-09 19:22:58 +00:00
|
|
|
db
|
2016-05-11 21:16:03 +00:00
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
wHandshakeFrameDelay:: db
|
|
|
|
wPrinterSerialFrameDelay:: db
|
2016-05-11 21:16:03 +00:00
|
|
|
wPrinterSendByteOffset:: dw
|
|
|
|
wPrinterSendByteCounter:: dw
|
|
|
|
|
|
|
|
; tilemap backup?
|
2020-06-21 03:03:40 +00:00
|
|
|
wPrinterTilemapBuffer:: ds SCREEN_HEIGHT * SCREEN_WIDTH
|
|
|
|
wPrinterStatus:: db
|
2016-05-11 21:16:03 +00:00
|
|
|
ds 1
|
2019-05-11 17:01:59 +00:00
|
|
|
; High nibble is for margin before the image, low nibble is for after.
|
2020-06-21 03:03:40 +00:00
|
|
|
wPrinterMargins:: db
|
|
|
|
wPrinterExposureTime:: db
|
2016-05-11 21:16:03 +00:00
|
|
|
ds 16
|
|
|
|
wGameboyPrinterRAMEnd::
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
; bill's pc data
|
2019-04-19 22:55:04 +00:00
|
|
|
wBillsPCData::
|
2018-03-19 15:36:14 +00:00
|
|
|
wBillsPCPokemonList::
|
|
|
|
; (species, box number, list index) x30
|
2017-12-09 19:22:58 +00:00
|
|
|
ds 3 * 30
|
2019-04-19 22:55:04 +00:00
|
|
|
ds 720
|
|
|
|
wBillsPC_ScrollPosition:: db
|
|
|
|
wBillsPC_CursorPosition:: db
|
|
|
|
wBillsPC_NumMonsInBox:: db
|
|
|
|
wBillsPC_NumMonsOnScreen:: db
|
|
|
|
wBillsPC_LoadedBox:: db ; 0 if party, 1 - 14 if box, 15 if active box
|
|
|
|
wBillsPC_BackupScrollPosition:: db
|
|
|
|
wBillsPC_BackupCursorPosition:: db
|
|
|
|
wBillsPC_BackupLoadedBox:: db
|
|
|
|
wBillsPC_MonHasMail:: db
|
|
|
|
ds 5
|
|
|
|
wBillsPCDataEnd::
|
|
|
|
|
2015-12-16 17:32:08 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2018-03-19 15:36:14 +00:00
|
|
|
; Hall of Fame data
|
|
|
|
wHallOfFamePokemonList:: hall_of_fame wHallOfFamePokemonList
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2020-10-23 20:04:15 +00:00
|
|
|
; debug color picker
|
|
|
|
wDebugOriginalColors:: ds 256 * 4
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; raw link data
|
2020-12-09 02:24:48 +00:00
|
|
|
wLinkData:: ds 1300
|
2017-12-10 00:41:03 +00:00
|
|
|
wLinkDataEnd::
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; link data members
|
2015-12-20 17:54:08 +00:00
|
|
|
wLinkPlayerName:: ds NAME_LENGTH
|
2019-04-19 22:55:04 +00:00
|
|
|
wLinkPartyCount:: db
|
2015-12-20 17:54:08 +00:00
|
|
|
wLinkPartySpecies:: ds PARTY_LENGTH
|
2019-04-19 22:55:04 +00:00
|
|
|
wLinkPartyEnd:: db ; older code doesn't check PartyCount
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2020-12-09 02:24:48 +00:00
|
|
|
; link player data
|
|
|
|
wLinkPlayerData::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wLinkPlayerPartyMon1 - wLinkPlayerPartyMon6
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wLinkPlayerPartyMon{d:n}:: party_struct wLinkPlayerPartyMon{d:n}
|
|
|
|
endr
|
2021-03-17 20:16:02 +00:00
|
|
|
|
|
|
|
wLinkPlayerPartyMonOTs::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wLinkPlayerPartyMon1OT - wLinkPlayerPartyMon6OT
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wLinkPlayerPartyMon{d:n}OT:: ds NAME_LENGTH
|
|
|
|
endr
|
2021-03-17 20:16:02 +00:00
|
|
|
|
|
|
|
wLinkPlayerPartyMonNicknames::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wLinkPlayerPartyMon1Nickname - wLinkPlayerPartyMon6Nickname
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wLinkPlayerPartyMon{d:n}Nickname:: ds MON_NAME_LENGTH
|
|
|
|
endr
|
2020-12-09 02:24:48 +00:00
|
|
|
|
|
|
|
NEXTU
|
2017-12-09 19:22:58 +00:00
|
|
|
; time capsule party data
|
2015-12-20 17:54:08 +00:00
|
|
|
wTimeCapsulePlayerData::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wTimeCapsulePartyMon1 - wTimeCapsulePartyMon6
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wTimeCapsulePartyMon{d:n}:: red_party_struct wTimeCapsulePartyMon{d:n}
|
|
|
|
endr
|
2021-03-17 20:16:02 +00:00
|
|
|
|
|
|
|
wTimeCapsulePartyMonOTs::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wTimeCapsulePartyMon1OT - wTimeCapsulePartyMon6OT
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wTimeCapsulePartyMon{d:n}OT:: ds NAME_LENGTH
|
|
|
|
endr
|
2021-03-17 20:16:02 +00:00
|
|
|
|
|
|
|
wTimeCapsulePartyMonNicknames::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wTimeCapsulePartyMon1Nickname - wTimeCapsulePartyMon6Nickname
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wTimeCapsulePartyMon{d:n}Nickname:: ds MON_NAME_LENGTH
|
|
|
|
endr
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2020-12-09 02:24:48 +00:00
|
|
|
; link patch lists
|
|
|
|
wLinkPatchList1:: ds SERIAL_PATCH_LIST_LENGTH
|
|
|
|
wLinkPatchList2:: ds SERIAL_PATCH_LIST_LENGTH
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2020-12-09 02:24:48 +00:00
|
|
|
; link data prep
|
|
|
|
ds 1000
|
2020-12-23 21:29:30 +00:00
|
|
|
wCurLinkOTPartyMonTypePointer:: dw
|
2021-03-17 20:16:02 +00:00
|
|
|
|
|
|
|
wLinkOTPartyMonTypes::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wLinkOTPartyMon1Type - wLinkOTPartyMon6Type
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wLinkOTPartyMon{d:n}Type:: dw
|
|
|
|
endr
|
2020-12-09 02:24:48 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2020-12-09 02:24:48 +00:00
|
|
|
; link mail data
|
|
|
|
ds 500
|
|
|
|
wLinkPlayerMail::
|
|
|
|
wLinkPlayerMailPreamble:: ds SERIAL_MAIL_PREAMBLE_LENGTH
|
|
|
|
wLinkPlayerMailMessages:: ds (MAIL_MSG_LENGTH + 1) * PARTY_LENGTH
|
|
|
|
wLinkPlayerMailMetadata:: ds (MAIL_STRUCT_LENGTH - (MAIL_MSG_LENGTH + 1)) * PARTY_LENGTH
|
|
|
|
wLinkPlayerMailPatchSet:: ds 103
|
|
|
|
wLinkPlayerMailEnd::
|
|
|
|
ds 10
|
|
|
|
wLinkOTMail::
|
|
|
|
wLinkOTMailMessages:: ds (MAIL_MSG_LENGTH + 1) * PARTY_LENGTH
|
|
|
|
wLinkOTMailMetadata:: ds (MAIL_STRUCT_LENGTH - (MAIL_MSG_LENGTH + 1)) * PARTY_LENGTH
|
|
|
|
wOTPlayerMailPatchSet:: ds 103 + SERIAL_MAIL_PREAMBLE_LENGTH
|
|
|
|
wLinkOTMailEnd::
|
|
|
|
ds 10
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2020-12-09 02:24:48 +00:00
|
|
|
; received link mail data
|
|
|
|
ds 500
|
|
|
|
wLinkReceivedMail:: ds MAIL_STRUCT_LENGTH * PARTY_LENGTH
|
|
|
|
wLinkReceivedMailEnd:: db
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
; mystery gift data
|
2020-10-22 04:53:54 +00:00
|
|
|
wMysteryGiftStaging:: ds 80
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2020-10-27 17:22:27 +00:00
|
|
|
wMysteryGiftTrainer:: ds 1 + (1 + 1 + NUM_MOVES) * PARTY_LENGTH + 1
|
|
|
|
wMysteryGiftTrainerEnd::
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-10-30 14:45:31 +00:00
|
|
|
NEXTU
|
|
|
|
wNameCardData:: ds NAME_LENGTH + 2 + 2 + 1 + 8 + 12
|
|
|
|
wNameCardDataEnd::
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2020-10-26 19:45:57 +00:00
|
|
|
wMysteryGiftCardHolderName:: ds PLAYER_NAME_LENGTH
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2015-12-15 01:06:41 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
ds 138
|
|
|
|
|
2015-12-15 01:06:41 +00:00
|
|
|
wMysteryGiftPartnerData::
|
2020-10-27 17:22:27 +00:00
|
|
|
wMysteryGiftGameVersion:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wMysteryGiftPartnerID:: dw
|
2015-11-23 05:21:21 +00:00
|
|
|
wMysteryGiftPartnerName:: ds NAME_LENGTH
|
2017-12-10 00:41:03 +00:00
|
|
|
wMysteryGiftPartnerDexCaught:: db
|
|
|
|
wMysteryGiftPartnerSentDeco:: db
|
|
|
|
wMysteryGiftPartnerWhichItem:: db
|
|
|
|
wMysteryGiftPartnerWhichDeco:: db
|
|
|
|
wMysteryGiftPartnerBackupItem:: db
|
|
|
|
ds 1
|
2015-12-15 01:06:41 +00:00
|
|
|
wMysteryGiftPartnerDataEnd::
|
2017-12-10 00:41:03 +00:00
|
|
|
|
|
|
|
ds 60
|
|
|
|
|
2015-12-15 01:06:41 +00:00
|
|
|
wMysteryGiftPlayerData::
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 1
|
|
|
|
wMysteryGiftPlayerID:: dw
|
2015-12-15 01:06:41 +00:00
|
|
|
wMysteryGiftPlayerName:: ds NAME_LENGTH
|
2017-12-10 00:41:03 +00:00
|
|
|
wMysteryGiftPlayerDexCaught:: db
|
|
|
|
wMysteryGiftPlayerSentDeco:: db
|
|
|
|
wMysteryGiftPlayerWhichItem:: db
|
|
|
|
wMysteryGiftPlayerWhichDeco:: db
|
|
|
|
wMysteryGiftPlayerBackupItem:: db
|
|
|
|
ds 1
|
2015-12-15 01:06:41 +00:00
|
|
|
wMysteryGiftPlayerDataEnd::
|
|
|
|
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
|
|
|
ds $200
|
2017-12-10 00:41:03 +00:00
|
|
|
|
|
|
|
; mystery gift data
|
2020-10-27 17:22:27 +00:00
|
|
|
wUnusedMysteryGiftStagedDataLength:: db
|
|
|
|
wMysteryGiftMessageCount:: db
|
|
|
|
wMysteryGiftStagedDataLength:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
|
|
|
ds $200
|
|
|
|
|
|
|
|
; blank credits tile buffer
|
|
|
|
wCreditsBlankFrame2bpp:: ds 4 * 4 tiles
|
|
|
|
wCreditsBlankFrame2bppEnd::
|
|
|
|
|
|
|
|
|
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
|
|
|
|
2020-10-27 17:22:27 +00:00
|
|
|
; mobile
|
2021-09-05 16:47:24 +00:00
|
|
|
wc800:: db
|
|
|
|
wc801:: db
|
|
|
|
wc802:: db
|
|
|
|
wc803:: db
|
|
|
|
wc804:: db
|
|
|
|
wc805:: db
|
|
|
|
wc806:: db
|
|
|
|
wc807:: db
|
|
|
|
wc808:: dw
|
|
|
|
wc80a:: db
|
|
|
|
wc80b:: db
|
|
|
|
wc80c:: dw
|
|
|
|
wc80e:: db
|
|
|
|
wc80f:: db
|
|
|
|
wc810:: db
|
|
|
|
wc811:: db
|
2020-10-27 17:22:27 +00:00
|
|
|
wMobileSDK_PacketChecksum:: dw
|
2021-09-05 16:47:24 +00:00
|
|
|
wc814:: db
|
|
|
|
wc815:: db
|
|
|
|
wc816:: dw
|
2020-10-27 17:22:27 +00:00
|
|
|
wMobileSDK_AdapterType:: db
|
2021-09-05 16:47:24 +00:00
|
|
|
wc819:: db
|
|
|
|
wc81a:: db
|
|
|
|
wc81b:: db
|
|
|
|
wc81c:: db
|
|
|
|
wc81d:: db
|
2020-10-27 17:22:27 +00:00
|
|
|
wMobileSDK_SendCommandID:: db
|
2021-09-05 16:47:24 +00:00
|
|
|
wc81f:: db
|
|
|
|
wc820:: db
|
|
|
|
wc821:: db
|
|
|
|
wc822:: db
|
|
|
|
wc823:: ds 4
|
|
|
|
wc827:: dw
|
|
|
|
wc829:: db
|
|
|
|
wc82a:: db
|
|
|
|
wc82b:: db
|
|
|
|
wc82c:: db
|
|
|
|
wc82d:: db
|
|
|
|
wc82e:: db
|
|
|
|
wc82f:: ds 3
|
|
|
|
wc832:: db
|
|
|
|
wc833:: db
|
|
|
|
wc834:: db
|
|
|
|
wc835:: db
|
|
|
|
wc836:: ds 8
|
|
|
|
wc83e:: ds 20
|
|
|
|
wc852:: ds 20
|
|
|
|
wc866:: ds 4
|
|
|
|
wc86a:: db
|
|
|
|
wc86b:: db
|
|
|
|
wc86c:: db
|
|
|
|
wc86d:: db
|
|
|
|
wc86e:: db
|
|
|
|
wc86f:: db
|
|
|
|
wc870:: db
|
|
|
|
wc871:: db
|
|
|
|
wc872:: db
|
|
|
|
wc873:: db
|
|
|
|
wc874:: db
|
|
|
|
wc875:: db
|
|
|
|
wc876:: db
|
|
|
|
wc877:: db
|
|
|
|
wc878:: dw
|
|
|
|
wc87a:: db
|
|
|
|
wc87b:: db
|
|
|
|
wc87c:: db
|
|
|
|
wc87d:: db
|
|
|
|
wc87e:: db
|
|
|
|
wc87f:: db
|
|
|
|
wc880:: db
|
|
|
|
wc881:: db
|
|
|
|
wc882:: db
|
|
|
|
wc883:: db
|
|
|
|
wc884:: ds 8
|
|
|
|
wc88c:: ds 32
|
|
|
|
wc8ac:: ds 26
|
|
|
|
wc8c6:: db
|
|
|
|
wc8c7:: db
|
|
|
|
wc8c8:: db
|
|
|
|
wc8c9:: db
|
|
|
|
wc8ca:: ds 44
|
|
|
|
wc8f6:: ds 8
|
|
|
|
wc8fe:: db
|
|
|
|
wc8ff:: ds 15
|
|
|
|
wc90e:: ds 8
|
|
|
|
wc916:: ds 16
|
|
|
|
wc926:: ds 8
|
|
|
|
wc92e:: ds 75
|
|
|
|
wc979:: db
|
|
|
|
wc97a:: ds 5
|
|
|
|
wc97f:: db
|
|
|
|
wc980:: db
|
|
|
|
wc981:: db
|
|
|
|
wc982:: db
|
|
|
|
wc983:: dw
|
|
|
|
wc985:: db
|
|
|
|
wc986:: db
|
|
|
|
wc987:: db
|
2022-01-16 22:50:50 +00:00
|
|
|
wMobileAPIIndex:: db
|
2021-09-05 16:47:24 +00:00
|
|
|
wc989:: db
|
|
|
|
wc98a:: db
|
|
|
|
wc98b:: db
|
|
|
|
wc98c:: db
|
|
|
|
wc98d:: db
|
|
|
|
wc98e:: db
|
|
|
|
wc98f:: db
|
|
|
|
wc990:: db
|
|
|
|
wc991:: db
|
|
|
|
wc992:: db
|
|
|
|
wc993:: db
|
|
|
|
wc994:: db
|
|
|
|
wc995:: ds 16
|
|
|
|
wc9a5:: ds 5
|
|
|
|
wc9aa:: db
|
|
|
|
wc9ab:: db
|
|
|
|
wc9ac:: db
|
|
|
|
wc9ad:: db
|
|
|
|
wc9ae:: db
|
|
|
|
wc9af:: dw
|
|
|
|
wc9b1:: db
|
|
|
|
wc9b2:: ds 3
|
|
|
|
wc9b5:: db
|
|
|
|
wc9b6:: ds 121
|
|
|
|
|
2020-11-02 15:33:49 +00:00
|
|
|
wMobileSDK_ReceivePacketBufferAlt:: ds 11
|
|
|
|
wMobileSDK_ReceivedBytes:: dw
|
2021-09-05 16:47:24 +00:00
|
|
|
wMobileSDK_ReceivePacketBuffer:: ds 250
|
|
|
|
wcb36:: db
|
|
|
|
ds 16
|
2020-12-09 02:24:48 +00:00
|
|
|
wMobileSDK_PacketBuffer:: ds 281
|
|
|
|
wcc60:: ds 1
|
|
|
|
wcc61:: ds 1
|
|
|
|
wcc62:: ds 2
|
|
|
|
wcc64:: ds 1
|
|
|
|
wcc65:: ds 57
|
|
|
|
ds 22
|
|
|
|
wccb4:: ds 1
|
|
|
|
wccb5:: ds 3
|
|
|
|
wccb8:: ds 1
|
|
|
|
wccb9:: ds 1
|
|
|
|
wccba:: ds 90
|
2020-10-27 17:22:27 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
2020-07-13 17:05:05 +00:00
|
|
|
if DEF(_DEBUG)
|
2021-05-09 16:26:28 +00:00
|
|
|
SECTION UNION "Overworld Map", WRAM0
|
2020-07-13 17:05:05 +00:00
|
|
|
|
|
|
|
; debug room RTC values
|
|
|
|
wDebugRoomRTCSec:: db
|
|
|
|
wDebugRoomRTCMin:: db
|
|
|
|
wDebugRoomRTCHour:: db
|
|
|
|
wDebugRoomRTCDay:: dw
|
|
|
|
wDebugRoomRTCCurSec:: db
|
|
|
|
wDebugRoomRTCCurMin:: db
|
|
|
|
wDebugRoomRTCCurHour:: db
|
|
|
|
wDebugRoomRTCCurDay:: dw
|
|
|
|
|
|
|
|
; debug room paged values
|
|
|
|
wDebugRoomCurPage:: db
|
|
|
|
wDebugRoomCurValue:: db
|
|
|
|
wDebugRoomAFunction:: dw
|
|
|
|
wDebugRoomStartFunction:: dw
|
|
|
|
wDebugRoomSelectFunction:: dw
|
|
|
|
wDebugRoomAutoFunction:: dw
|
|
|
|
wDebugRoomPageCount:: db
|
2020-12-23 21:29:30 +00:00
|
|
|
wDebugRoomPagesPointer:: dw
|
2020-07-13 17:05:05 +00:00
|
|
|
|
|
|
|
wDebugRoomROMChecksum:: dw
|
|
|
|
wDebugRoomCurChecksumBank:: db
|
|
|
|
|
|
|
|
UNION
|
|
|
|
; debug room new item values
|
|
|
|
wDebugRoomItemID:: db
|
|
|
|
wDebugRoomItemQuantity:: db
|
|
|
|
NEXTU
|
|
|
|
; debug room new pokemon values
|
|
|
|
wDebugRoomMon:: box_struct wDebugRoomMon
|
|
|
|
wDebugRoomMonBox:: db
|
|
|
|
NEXTU
|
|
|
|
; debug room GB ID values
|
|
|
|
wDebugRoomGBID:: dw
|
|
|
|
ENDU
|
|
|
|
|
|
|
|
endc
|
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2015-02-11 02:25:48 +00:00
|
|
|
SECTION "Video", WRAM0
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2020-12-23 21:29:30 +00:00
|
|
|
; bg map
|
|
|
|
wBGMapBuffer:: ds 40
|
|
|
|
wBGMapPalBuffer:: ds 40
|
|
|
|
wBGMapBufferPointers:: ds 20 * 2
|
2018-01-23 22:39:09 +00:00
|
|
|
wBGMapBufferEnd::
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; credits
|
2020-04-17 14:52:59 +00:00
|
|
|
wCreditsPos:: dw
|
2018-01-23 22:39:09 +00:00
|
|
|
wCreditsTimer:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; mobile data
|
2020-12-23 21:29:30 +00:00
|
|
|
wMobileMonSpeciesPointer:: dw
|
|
|
|
wMobileMonStructPointer:: dw
|
2021-03-17 20:16:02 +00:00
|
|
|
wMobileMonOTPointer:: dw
|
2020-12-23 21:29:30 +00:00
|
|
|
wMobileMonNicknamePointer:: dw
|
|
|
|
wMobileMonMailPointer:: dw
|
2015-12-26 04:34:33 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; more mobile data
|
2015-12-26 16:31:56 +00:00
|
|
|
wcd20:: ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd21:: ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
wcd22:: ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd23:: ds 1
|
|
|
|
wcd24:: ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wMobileCommsJumptableIndex:: ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd26:: ds 1
|
|
|
|
wcd27:: ds 1
|
|
|
|
wcd28:: ds 1
|
|
|
|
wcd29:: ds 1
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wMobileMonSpecies::
|
2017-12-10 00:41:03 +00:00
|
|
|
wcd2a:: db
|
|
|
|
|
2021-03-17 20:16:02 +00:00
|
|
|
UNION
|
|
|
|
wTempOddEggNickname:: ds MON_NAME_LENGTH
|
|
|
|
NEXTU
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd2b:: ds 1
|
|
|
|
wcd2c:: ds 1
|
|
|
|
wcd2d:: ds 1
|
|
|
|
wcd2e:: ds 1
|
|
|
|
wcd2f:: ds 1
|
|
|
|
wcd30:: ds 1
|
|
|
|
wcd31:: ds 1
|
|
|
|
wcd32:: ds 1
|
|
|
|
wcd33:: ds 1
|
|
|
|
wcd34:: ds 1
|
|
|
|
wcd35:: ds 1
|
2021-03-17 20:16:02 +00:00
|
|
|
ENDU
|
2016-05-08 18:11:24 +00:00
|
|
|
|
|
|
|
; current time for link/mobile?
|
2017-12-10 00:41:03 +00:00
|
|
|
wcd36:: db ; hours
|
|
|
|
wcd37:: db ; mins
|
|
|
|
wcd38:: db ; secs
|
2016-05-08 18:11:24 +00:00
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd39:: ds 1
|
|
|
|
wcd3a:: ds 1
|
|
|
|
wcd3b:: ds 1
|
2019-04-27 17:50:24 +00:00
|
|
|
wBattleTowerRoomMenu2JumptableIndex:: ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd3d:: ds 1
|
|
|
|
wcd3e:: ds 1
|
|
|
|
wcd3f:: ds 1
|
|
|
|
wcd40:: ds 1
|
|
|
|
wcd41:: ds 1
|
|
|
|
wcd42:: ds 1
|
|
|
|
wcd43:: ds 1
|
2016-05-08 18:11:24 +00:00
|
|
|
|
|
|
|
; some sort of timer in link battles
|
2017-12-10 00:41:03 +00:00
|
|
|
wMobileInactivityTimerMinutes:: db ; mins
|
|
|
|
wMobileInactivityTimerSeconds:: db ; secs
|
|
|
|
wMobileInactivityTimerFrames:: db ; frames
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd47:: ds 1
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2015-12-08 21:06:13 +00:00
|
|
|
wBTTempOTSprite::
|
2017-12-10 00:41:03 +00:00
|
|
|
wcd49:: db
|
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd4a:: ds 1
|
|
|
|
wcd4b:: ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2016-05-14 20:37:12 +00:00
|
|
|
wEZChatCursorXCoord::
|
2017-12-10 00:41:03 +00:00
|
|
|
wcd4c:: db
|
2016-05-14 20:37:12 +00:00
|
|
|
wEZChatCursorYCoord::
|
2017-12-10 00:41:03 +00:00
|
|
|
wcd4d:: db
|
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd4e:: ds 1
|
|
|
|
wcd4f:: ds 1
|
|
|
|
wcd50:: ds 1
|
|
|
|
wcd51:: ds 1
|
|
|
|
wcd52:: ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
|
|
|
|
wMobileOpponentBattleMessage:: ; ds 12
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd53:: ds 1
|
|
|
|
wcd54:: ds 1
|
|
|
|
wcd55:: ds 1
|
|
|
|
wcd56:: ds 1
|
|
|
|
wcd57:: ds 1
|
|
|
|
wcd58:: ds 1
|
|
|
|
wcd59:: ds 1
|
|
|
|
wcd5a:: ds 1
|
|
|
|
wcd5b:: ds 1
|
|
|
|
wcd5c:: ds 1
|
|
|
|
wcd5d:: ds 1
|
|
|
|
wcd5e:: ds 1
|
|
|
|
wcd5f:: ds 1
|
|
|
|
wcd60:: ds 2
|
|
|
|
wcd62:: ds 1
|
|
|
|
wcd63:: ds 1
|
|
|
|
wcd64:: ds 1
|
|
|
|
wcd65:: ds 1
|
|
|
|
wcd66:: ds 1
|
|
|
|
wcd67:: ds 1
|
|
|
|
wcd68:: ds 1
|
|
|
|
wcd69:: ds 1
|
|
|
|
wcd6a:: ds 1
|
|
|
|
wcd6b:: ds 1
|
|
|
|
wcd6c:: ds 1
|
|
|
|
wcd6d:: ds 1
|
|
|
|
wcd6e:: ds 1
|
2019-11-17 18:47:42 +00:00
|
|
|
wcd6f:: ds 1
|
|
|
|
wcd70:: ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd71:: ds 1
|
|
|
|
wcd72:: ds 1
|
|
|
|
wcd73:: ds 1
|
|
|
|
wcd74:: ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2018-02-04 02:22:06 +00:00
|
|
|
wOTMonSelection:: ds 2 ; ds BATTLETOWER_PARTY_LENGTH
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd77:: ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2018-01-03 04:16:56 +00:00
|
|
|
wMobileCrashCheckPointer:: dw
|
2015-02-08 08:03:32 +00:00
|
|
|
wcd7a:: ds 2
|
|
|
|
wcd7c:: ds 3
|
|
|
|
wcd7f:: ds 1
|
|
|
|
wcd80:: ds 1
|
|
|
|
wcd81:: ds 1
|
|
|
|
wcd82:: ds 1
|
|
|
|
wcd83:: ds 1
|
|
|
|
wcd84:: ds 1
|
|
|
|
wcd85:: ds 4
|
|
|
|
wcd89:: ds 1
|
|
|
|
wcd8a:: ds 1
|
|
|
|
wcd8b:: ds 1
|
|
|
|
wcd8c:: ds 1
|
|
|
|
wcd8d:: ds 11
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-07-04 20:18:16 +00:00
|
|
|
wDefaultSGBLayout:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerHPPal:: db
|
|
|
|
wEnemyHPPal:: db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2015-12-23 03:19:33 +00:00
|
|
|
wHPPals:: ds PARTY_LENGTH
|
2017-12-10 00:41:03 +00:00
|
|
|
wCurHPPal:: db
|
|
|
|
|
|
|
|
ds 7
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wSGBPals:: ds 48
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wAttrmap::
|
2016-05-08 18:11:24 +00:00
|
|
|
; 20x18 grid of bg tile attributes for 8x8 tiles
|
2012-12-14 08:00:10 +00:00
|
|
|
; read horizontally from the top row
|
2016-05-08 18:11:24 +00:00
|
|
|
; bit 7: priority
|
|
|
|
; bit 6: y flip
|
|
|
|
; bit 5: x flip
|
|
|
|
; bit 4: pal # (non-cgb)
|
|
|
|
; bit 3: vram bank (cgb only)
|
|
|
|
; bit 2-0: pal # (cgb only)
|
2014-06-13 01:32:42 +00:00
|
|
|
ds SCREEN_WIDTH * SCREEN_HEIGHT
|
2020-02-13 17:30:13 +00:00
|
|
|
wAttrmapEnd::
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2017-12-10 00:41:03 +00:00
|
|
|
; addresses dealing with serial comms
|
|
|
|
ds 1
|
|
|
|
wcf42:: db
|
2015-12-23 19:00:29 +00:00
|
|
|
ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
wcf44:: db
|
|
|
|
wcf45:: db
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
wTileAnimBuffer:: ds 1 tiles
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; link data
|
2021-02-22 17:00:53 +00:00
|
|
|
UNION
|
2017-12-10 00:41:03 +00:00
|
|
|
wOtherPlayerLinkMode:: db
|
|
|
|
wOtherPlayerLinkAction:: db
|
|
|
|
ds 3
|
|
|
|
wPlayerLinkAction:: db
|
2020-12-09 02:24:48 +00:00
|
|
|
wUnusedLinkAction:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 3
|
2021-02-22 17:00:53 +00:00
|
|
|
NEXTU
|
|
|
|
wLinkReceivedSyncBuffer:: ds 5
|
|
|
|
wLinkPlayerSyncBuffer:: ds 5
|
|
|
|
ENDU
|
2020-06-21 03:03:40 +00:00
|
|
|
wLinkTimeoutFrames:: dw
|
2020-10-29 18:45:40 +00:00
|
|
|
wLinkByteTimeout:: dw
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMonType:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurSpecies:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wNamedObjectType:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2015-10-19 20:49:29 +00:00
|
|
|
ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2017-12-23 16:34:55 +00:00
|
|
|
wJumptableIndex::
|
2018-01-11 20:36:11 +00:00
|
|
|
wBattleTowerBattleEnded::
|
2017-12-23 16:34:55 +00:00
|
|
|
db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2020-08-03 21:00:41 +00:00
|
|
|
; intro data
|
2017-12-10 00:41:03 +00:00
|
|
|
wIntroSceneFrameCounter:: db
|
2018-01-11 20:36:11 +00:00
|
|
|
wIntroSceneTimer:: db
|
2020-08-03 21:00:41 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2020-08-03 21:00:41 +00:00
|
|
|
; title data
|
|
|
|
wTitleScreenSelectedOption:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wTitleScreenTimer:: dw
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; credits data
|
|
|
|
wCreditsBorderFrame:: db
|
|
|
|
wCreditsBorderMon:: db
|
|
|
|
wCreditsLYOverride:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2018-01-11 20:36:11 +00:00
|
|
|
; pokedex
|
|
|
|
wPrevDexEntryJumptableIndex:: db
|
|
|
|
if DEF(_CRYSTAL11)
|
|
|
|
wPrevDexEntryBackup:: db
|
|
|
|
else
|
|
|
|
wPrevDexEntryBackup::
|
|
|
|
wPokedexStatus:: db
|
|
|
|
endc
|
2020-10-28 17:35:39 +00:00
|
|
|
wUnusedPokedexByte:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2018-01-11 20:36:11 +00:00
|
|
|
; pokegear
|
|
|
|
wPokegearCard:: db
|
|
|
|
wPokegearMapRegion:: db
|
2020-10-28 17:35:39 +00:00
|
|
|
wUnusedPokegearByte:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2018-01-11 20:36:11 +00:00
|
|
|
; pack
|
|
|
|
wPackJumptableIndex:: db
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurPocket:: db
|
2018-01-11 20:36:11 +00:00
|
|
|
wPackUsedItem:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2018-01-11 19:43:18 +00:00
|
|
|
; trainer card badges
|
|
|
|
wTrainerCardBadgeFrameCounter:: db
|
|
|
|
wTrainerCardBadgeTileID:: db
|
|
|
|
wTrainerCardBadgeAttributes:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2020-10-28 17:35:39 +00:00
|
|
|
; slot machine
|
|
|
|
wSlotsDelay:: db
|
|
|
|
ds 1
|
|
|
|
wUnusedSlotReelIconDelay:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; card flip
|
2018-01-11 20:36:11 +00:00
|
|
|
wCardFlipCursorY:: db
|
|
|
|
wCardFlipCursorX:: db
|
|
|
|
wCardFlipWhichCard:: db
|
|
|
|
|
2020-10-28 17:35:39 +00:00
|
|
|
NEXTU
|
2020-11-09 00:32:57 +00:00
|
|
|
; unused memory game
|
|
|
|
wMemoryGameCardChoice:: db
|
2020-10-28 17:35:39 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2018-01-11 20:36:11 +00:00
|
|
|
; magnet train
|
|
|
|
wMagnetTrainOffset:: db
|
|
|
|
wMagnetTrainPosition:: db
|
|
|
|
wMagnetTrainWaitCounter:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2018-01-11 20:36:11 +00:00
|
|
|
; unown puzzle data
|
|
|
|
wHoldingUnownPuzzlePiece:: db
|
|
|
|
wUnownPuzzleCursorPosition:: db
|
|
|
|
wUnownPuzzleHeldPiece:: db
|
|
|
|
|
2020-10-28 17:35:39 +00:00
|
|
|
NEXTU
|
|
|
|
; battle transitions
|
|
|
|
wBattleTransitionCounter:: db
|
|
|
|
wBattleTransitionSineWaveOffset::
|
|
|
|
wBattleTransitionSpinQuadrant:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; bill's pc
|
|
|
|
wUnusedBillsPCData:: ds 3
|
|
|
|
|
2020-10-23 20:04:15 +00:00
|
|
|
NEXTU
|
|
|
|
; debug mon color picker
|
|
|
|
wDebugColorRGBJumptableIndex:: db
|
|
|
|
wDebugColorCurColor:: db
|
|
|
|
wDebugColorCurMon:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; debug tileset color picker
|
|
|
|
wDebugTilesetCurPalette:: db
|
|
|
|
wDebugTilesetRGBJumptableIndex:: db
|
|
|
|
wDebugTilesetCurColor:: db
|
|
|
|
|
2020-10-28 17:35:39 +00:00
|
|
|
NEXTU
|
|
|
|
; stats screen
|
|
|
|
wStatsScreenFlags:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-27 17:50:24 +00:00
|
|
|
; battle tower
|
2020-10-28 17:35:39 +00:00
|
|
|
wNrOfBeatenBattleTowerTrainers:: db
|
|
|
|
ds 1
|
2019-04-27 17:50:24 +00:00
|
|
|
wBattleTowerRoomMenuJumptableIndex:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; miscellaneous
|
2018-01-11 20:36:11 +00:00
|
|
|
wFrameCounter::
|
2017-12-10 00:41:03 +00:00
|
|
|
wMomBankDigitCursorPosition::
|
2018-01-11 20:36:11 +00:00
|
|
|
wNamingScreenLetterCase::
|
|
|
|
wHallOfFameMonCounter::
|
2020-10-28 17:35:39 +00:00
|
|
|
wTradeDialog::
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2020-10-28 17:35:39 +00:00
|
|
|
wFrameCounter2::
|
2016-05-11 21:16:03 +00:00
|
|
|
wPrinterQueueLength::
|
2020-10-28 17:35:39 +00:00
|
|
|
wUnusedSGB1eColorOffset::
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2020-10-28 17:35:39 +00:00
|
|
|
wUnusedTradeAnimPlayEvolutionMusic:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; mobile
|
|
|
|
wcf64:: db
|
|
|
|
wcf65:: db
|
|
|
|
wcf66:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2013-09-01 19:24:07 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wRequested2bppSize:: db
|
|
|
|
wRequested2bppSource:: dw
|
|
|
|
wRequested2bppDest:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wRequested1bppSize:: db
|
|
|
|
wRequested1bppSource:: dw
|
|
|
|
wRequested1bppDest:: dw
|
|
|
|
|
2022-01-23 02:43:09 +00:00
|
|
|
wMenuMetadata::
|
2020-06-21 03:03:40 +00:00
|
|
|
wWindowStackPointer:: dw
|
|
|
|
wMenuJoypad:: db
|
|
|
|
wMenuSelection:: db
|
|
|
|
wMenuSelectionQuantity:: db
|
|
|
|
wWhichIndexSet:: db
|
|
|
|
wScrollingMenuCursorPosition:: db
|
|
|
|
wWindowStackSize:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 8
|
2022-01-23 02:43:09 +00:00
|
|
|
wMenuMetadataEnd::
|
2015-10-24 14:34:19 +00:00
|
|
|
|
2018-01-23 21:08:43 +00:00
|
|
|
; menu header
|
2020-06-21 03:03:40 +00:00
|
|
|
wMenuHeader::
|
2017-12-10 00:41:03 +00:00
|
|
|
wMenuFlags:: db
|
|
|
|
wMenuBorderTopCoord:: db
|
|
|
|
wMenuBorderLeftCoord:: db
|
|
|
|
wMenuBorderBottomCoord:: db
|
|
|
|
wMenuBorderRightCoord:: db
|
2018-01-23 21:08:43 +00:00
|
|
|
wMenuDataPointer:: dw
|
2020-12-23 21:29:30 +00:00
|
|
|
wMenuCursorPosition:: db
|
|
|
|
ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
wMenuDataBank:: db
|
2015-11-10 21:53:37 +00:00
|
|
|
ds 6
|
2018-01-23 21:08:43 +00:00
|
|
|
wMenuHeaderEnd::
|
2015-11-10 21:53:37 +00:00
|
|
|
|
2018-01-23 21:08:43 +00:00
|
|
|
wMenuData::
|
2020-06-21 03:03:40 +00:00
|
|
|
wMenuDataFlags:: db
|
2017-12-30 11:23:20 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2017-12-30 11:23:20 +00:00
|
|
|
; Vertical Menu/DoNthMenu/SetUpMenu
|
2020-06-21 03:03:40 +00:00
|
|
|
wMenuDataItems:: db
|
|
|
|
wMenuDataIndicesPointer:: dw
|
|
|
|
wMenuDataDisplayFunctionPointer:: dw
|
|
|
|
wMenuDataPointerTableAddr:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-30 11:23:20 +00:00
|
|
|
; 2D Menu
|
2020-06-21 03:03:40 +00:00
|
|
|
wMenuData_2DMenuDimensions:: db
|
|
|
|
wMenuData_2DMenuSpacing:: db
|
|
|
|
wMenuData_2DMenuItemStringsBank:: db
|
|
|
|
wMenuData_2DMenuItemStringsAddr:: dw
|
|
|
|
wMenuData_2DMenuFunctionBank:: db
|
|
|
|
wMenuData_2DMenuFunctionAddr:: dw
|
|
|
|
|
|
|
|
NEXTU
|
2017-12-30 11:23:20 +00:00
|
|
|
; Scrolling Menu
|
2020-06-21 03:03:40 +00:00
|
|
|
wMenuData_ScrollingMenuHeight:: db
|
|
|
|
wMenuData_ScrollingMenuWidth:: db
|
|
|
|
wMenuData_ScrollingMenuItemFormat:: db
|
|
|
|
wMenuData_ItemsPointerBank:: db
|
|
|
|
wMenuData_ItemsPointerAddr:: dw
|
|
|
|
wMenuData_ScrollingMenuFunction1:: ds 3
|
|
|
|
wMenuData_ScrollingMenuFunction2:: ds 3
|
|
|
|
wMenuData_ScrollingMenuFunction3:: ds 3
|
|
|
|
ENDU
|
2018-01-23 21:08:43 +00:00
|
|
|
wMenuDataEnd::
|
2015-12-19 19:48:30 +00:00
|
|
|
|
2022-01-23 02:43:09 +00:00
|
|
|
wMoreMenuData::
|
2018-01-23 21:38:52 +00:00
|
|
|
w2DMenuData::
|
2020-06-21 03:03:40 +00:00
|
|
|
w2DMenuCursorInitY:: db
|
|
|
|
w2DMenuCursorInitX:: db
|
|
|
|
w2DMenuNumRows:: db
|
|
|
|
w2DMenuNumCols:: db
|
|
|
|
w2DMenuFlags1::
|
2017-12-30 11:23:20 +00:00
|
|
|
; bit 7: Disable checking of wMenuJoypadFilter
|
|
|
|
; bit 6: Enable sprite animations
|
|
|
|
; bit 5: Wrap around vertically
|
|
|
|
; bit 4: Wrap around horizontally
|
|
|
|
; bit 3: Set bit 7 in w2DMenuFlags2 and exit the loop if bit 5 is disabled and we tried to go too far down
|
|
|
|
; bit 2: Set bit 7 in w2DMenuFlags2 and exit the loop if bit 5 is disabled and we tried to go too far up
|
|
|
|
; bit 1: Set bit 7 in w2DMenuFlags2 and exit the loop if bit 4 is disabled and we tried to go too far left
|
|
|
|
; bit 0: Set bit 7 in w2DMenuFlags2 and exit the loop if bit 4 is disabled and we tried to go too far right
|
|
|
|
db
|
2020-06-21 03:03:40 +00:00
|
|
|
w2DMenuFlags2:: db
|
|
|
|
w2DMenuCursorOffsets:: db
|
|
|
|
wMenuJoypadFilter:: db
|
2018-01-23 21:38:52 +00:00
|
|
|
w2DMenuDataEnd::
|
2015-12-19 19:48:30 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMenuCursorY:: db
|
|
|
|
wMenuCursorX:: db
|
|
|
|
wCursorOffCharacter:: db
|
|
|
|
wCursorCurrentTile:: dw
|
2015-12-15 23:59:49 +00:00
|
|
|
ds 3
|
2022-01-23 02:43:09 +00:00
|
|
|
wMoreMenuDataEnd::
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wOverworldDelay:: db
|
|
|
|
wTextDelayFrames:: db
|
|
|
|
wVBlankOccurred:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPredefID:: db
|
2020-12-23 21:29:30 +00:00
|
|
|
wPredefHL:: dw
|
2020-06-21 03:03:40 +00:00
|
|
|
wPredefAddress:: dw
|
2020-12-23 21:29:30 +00:00
|
|
|
wFarCallBC:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-10-29 19:15:14 +00:00
|
|
|
wUnusedLinkCommunicationByte:: db
|
2012-12-23 08:21:19 +00:00
|
|
|
|
2020-10-28 17:35:39 +00:00
|
|
|
wGameTimerPaused::
|
2018-01-23 17:40:29 +00:00
|
|
|
; bit 0: game timer paused
|
|
|
|
; bit 7: something mobile
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
ds 1
|
|
|
|
|
2020-10-28 17:35:39 +00:00
|
|
|
wJoypadDisable::
|
2018-04-05 15:44:02 +00:00
|
|
|
; bits 4, 6, or 7 can be used to disable joypad input
|
|
|
|
; bit 4
|
2020-10-28 17:35:39 +00:00
|
|
|
; bit 6: ongoing mon faint animation
|
|
|
|
; bit 7: ongoing sgb data transfer
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
|
|
|
|
|
|
|
ds 1
|
2015-09-04 20:30:40 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wInBattleTowerBattle::
|
2015-09-04 20:30:40 +00:00
|
|
|
; 0 not in BattleTower-Battle
|
|
|
|
; 1 BattleTower-Battle
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2015-09-04 20:30:40 +00:00
|
|
|
|
|
|
|
ds 1
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wFXAnimID:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlaceBallsX:: db
|
|
|
|
wPlaceBallsY:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTileAnimationTimer:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2015-12-23 19:00:29 +00:00
|
|
|
; palette backups?
|
2017-12-10 00:41:03 +00:00
|
|
|
wBGP:: db
|
|
|
|
wOBP0:: db
|
|
|
|
wOBP1:: db
|
2015-12-23 19:00:29 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wNumHits:: db
|
|
|
|
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wOptions::
|
2012-10-09 06:32:05 +00:00
|
|
|
; bit 0-2: number of frames to delay when printing text
|
|
|
|
; fast 1; mid 3; slow 5
|
2012-12-23 08:21:19 +00:00
|
|
|
; bit 3: ?
|
|
|
|
; bit 4: no text delay
|
2012-10-09 06:32:05 +00:00
|
|
|
; bit 5: stereo off/on
|
|
|
|
; bit 6: battle style shift/set
|
|
|
|
; bit 7: battle scene off/on
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
|
|
|
wSaveFileExists:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wTextboxFrame::
|
2012-10-09 06:32:05 +00:00
|
|
|
; bits 0-2: textbox frame 0-7
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2019-04-08 12:15:10 +00:00
|
|
|
wTextboxFlags::
|
2017-12-29 18:18:17 +00:00
|
|
|
; bit 0: 1-frame text delay
|
|
|
|
; bit 4: no text delay
|
|
|
|
db
|
2020-06-21 03:03:40 +00:00
|
|
|
wGBPrinterBrightness::
|
2012-10-09 06:32:05 +00:00
|
|
|
; bit 0-6: brightness
|
|
|
|
; lightest: $00
|
|
|
|
; lighter: $20
|
|
|
|
; normal: $40 (default)
|
|
|
|
; darker: $60
|
|
|
|
; darkest: $7F
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2020-06-21 03:03:40 +00:00
|
|
|
wOptions2::
|
2012-10-09 06:32:05 +00:00
|
|
|
; bit 1: menu account off/on
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2015-02-08 08:03:32 +00:00
|
|
|
ds 2
|
2018-01-23 22:39:09 +00:00
|
|
|
wOptionsEnd::
|
2015-08-20 04:14:15 +00:00
|
|
|
|
2015-10-24 14:34:19 +00:00
|
|
|
; Time buffer, for counting the amount of time since
|
|
|
|
; an event began.
|
2017-12-10 00:41:03 +00:00
|
|
|
wSecondsSince:: db
|
|
|
|
wMinutesSince:: db
|
|
|
|
wHoursSince:: db
|
|
|
|
wDaysSince:: db
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2017-06-17 23:14:55 +00:00
|
|
|
SECTION "WRAM 1", WRAMX
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2020-07-01 17:13:49 +00:00
|
|
|
wGBCOnlyDecompressBuffer:: ; a $540-byte buffer that continues past this SECTION
|
2015-11-18 18:29:30 +00:00
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
wBetaTitleSequenceOpeningType::
|
|
|
|
; This selected the title screen animation (fire/notes) in pokegold-spaceworld.
|
|
|
|
db
|
2020-07-02 15:46:30 +00:00
|
|
|
|
2018-01-23 22:39:09 +00:00
|
|
|
wDefaultSpawnpoint:: db
|
2017-12-09 20:14:51 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; mon buffer
|
2021-03-17 20:16:02 +00:00
|
|
|
wBufferMonNickname:: ds MON_NAME_LENGTH
|
2020-10-29 18:45:40 +00:00
|
|
|
wBufferMonOT:: ds NAME_LENGTH
|
|
|
|
wBufferMon:: party_struct wBufferMon
|
|
|
|
ds 8
|
2020-11-25 01:11:17 +00:00
|
|
|
wMonOrItemNameBuffer:: ds NAME_LENGTH
|
|
|
|
ds NAME_LENGTH
|
2015-11-18 18:29:30 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; poke seer
|
|
|
|
wSeerAction:: db
|
2018-01-20 17:25:55 +00:00
|
|
|
wSeerNickname:: ds MON_NAME_LENGTH
|
2015-11-23 21:04:53 +00:00
|
|
|
wSeerCaughtLocation:: ds 17
|
|
|
|
wSeerTimeOfDay:: ds NAME_LENGTH
|
2021-03-17 20:16:02 +00:00
|
|
|
wSeerOT:: ds NAME_LENGTH
|
|
|
|
wSeerOTGrammar:: db
|
2015-11-23 21:04:53 +00:00
|
|
|
wSeerCaughtLevelString:: ds 4
|
2017-12-10 00:41:03 +00:00
|
|
|
wSeerCaughtLevel:: db
|
|
|
|
wSeerCaughtData:: db
|
|
|
|
wSeerCaughtGender:: db
|
2015-11-23 21:04:53 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; mail temp storage
|
|
|
|
wTempMail:: mailmsg wTempMail
|
2015-12-16 17:32:08 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; bug-catching contest
|
2015-12-19 01:07:09 +00:00
|
|
|
wBugContestResults::
|
|
|
|
bugcontestwinner wBugContestFirstPlace
|
|
|
|
bugcontestwinner wBugContestSecondPlace
|
|
|
|
bugcontestwinner wBugContestThirdPlace
|
|
|
|
wBugContestWinnersEnd::
|
|
|
|
bugcontestwinner wBugContestTemp
|
|
|
|
ds 4
|
|
|
|
wBugContestWinnerName:: ds NAME_LENGTH
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; mart items
|
|
|
|
wMartItem1BCD:: ds 3
|
|
|
|
wMartItem2BCD:: ds 3
|
|
|
|
wMartItem3BCD:: ds 3
|
|
|
|
wMartItem4BCD:: ds 3
|
|
|
|
wMartItem5BCD:: ds 3
|
|
|
|
wMartItem6BCD:: ds 3
|
|
|
|
wMartItem7BCD:: ds 3
|
|
|
|
wMartItem8BCD:: ds 3
|
|
|
|
wMartItem9BCD:: ds 3
|
|
|
|
wMartItem10BCD:: ds 3
|
2013-06-27 04:34:49 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; town map data
|
2018-02-04 02:22:06 +00:00
|
|
|
wTownMapPlayerIconLandmark:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
UNION
|
2018-02-04 02:22:06 +00:00
|
|
|
wTownMapCursorLandmark:: db
|
|
|
|
wTownMapCursorObjectPointer:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
NEXTU
|
2018-02-04 02:22:06 +00:00
|
|
|
wTownMapCursorCoordinates:: dw
|
2020-10-29 18:45:40 +00:00
|
|
|
wStartFlypoint:: db
|
|
|
|
wEndFlypoint:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
ENDU
|
2013-06-27 04:34:49 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; phone call data
|
2018-01-23 22:39:09 +00:00
|
|
|
wPhoneScriptBank:: db
|
|
|
|
wPhoneCaller:: dw
|
2015-11-10 04:01:45 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; radio data
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurRadioLine:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wNextRadioLine:: db
|
|
|
|
wRadioTextDelay:: db
|
|
|
|
wNumRadioLinesPrinted:: db
|
2018-02-22 16:13:29 +00:00
|
|
|
wOaksPKMNTalkSegmentCounter:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 5
|
2015-11-10 04:01:45 +00:00
|
|
|
wRadioText:: ds 2 * SCREEN_WIDTH
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; lucky number show
|
2018-07-29 05:13:25 +00:00
|
|
|
wLuckyNumberDigitsBuffer:: ds 5
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; movement buffer data
|
|
|
|
wMovementBufferCount:: db
|
2017-12-24 18:46:34 +00:00
|
|
|
wMovementBufferObject:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wUnusedMovementBufferBank:: db
|
|
|
|
wUnusedMovementBufferPointer:: dw
|
2018-01-23 22:39:09 +00:00
|
|
|
wMovementBuffer:: ds 55
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; box printing
|
|
|
|
wWhichBoxMonToPrint:: db
|
|
|
|
wFinishedPrintingBox:: db
|
|
|
|
wAddrOfBoxToPrint:: dw
|
|
|
|
wBankOfBoxToPrint:: db
|
|
|
|
wWhichBoxToPrint:: db
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-28 17:35:39 +00:00
|
|
|
; Unown printing
|
|
|
|
wPrintedUnownTileSource:: ds 1 tiles
|
|
|
|
wPrintedUnownTileDest:: ds 1 tiles
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; trainer HUD data
|
|
|
|
ds 1
|
|
|
|
wPlaceBallsDirection:: db
|
2018-07-29 05:09:12 +00:00
|
|
|
wTrainerHUDTiles:: ds 4
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; mobile participant nicknames
|
|
|
|
ds 4
|
2017-12-11 18:47:58 +00:00
|
|
|
wMobileParticipant1Nickname:: ds NAME_LENGTH_JAPANESE
|
|
|
|
wMobileParticipant2Nickname:: ds NAME_LENGTH_JAPANESE
|
|
|
|
wMobileParticipant3Nickname:: ds NAME_LENGTH_JAPANESE
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; battle exp gain
|
|
|
|
wExperienceGained:: ds 3
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; earthquake data buffer
|
|
|
|
wEarthquakeMovementDataBuffer:: ds 5
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-21 19:39:15 +00:00
|
|
|
; switching items in pack
|
|
|
|
wSwitchItemBuffer:: ds 2 ; may store 1 or 2 bytes
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; switching pokemon in party
|
|
|
|
; may store NAME_LENGTH, PARTYMON_STRUCT_LENGTH, or MAIL_STRUCT_LENGTH bytes
|
|
|
|
wSwitchMonBuffer:: ds 48
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; giving pokemon mail
|
|
|
|
wMonMailMessageBuffer:: ds MAIL_MSG_LENGTH + 1
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; bill's pc
|
|
|
|
UNION
|
|
|
|
wBoxNameBuffer:: ds BOX_NAME_LENGTH
|
|
|
|
NEXTU
|
|
|
|
ds 1
|
|
|
|
wBillsPCTempListIndex:: db
|
|
|
|
wBillsPCTempBoxCount:: db
|
|
|
|
ENDU
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; prof. oak's pc
|
|
|
|
wTempPokedexSeenCount:: db
|
|
|
|
wTempPokedexCaughtCount:: db
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; player's room pc
|
|
|
|
UNION
|
|
|
|
wDecoNameBuffer:: ds ITEM_NAME_LENGTH
|
|
|
|
NEXTU
|
|
|
|
wNumOwnedDecoCategories:: db
|
|
|
|
wOwnedDecoCategories:: ds 16
|
|
|
|
ENDU
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; trade
|
|
|
|
wCurTradePartyMon:: db
|
|
|
|
wCurOTTradePartyMon:: db
|
2021-03-17 20:16:02 +00:00
|
|
|
wBufferTrademonNickname:: ds MON_NAME_LENGTH
|
2020-10-29 18:45:40 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-29 18:45:40 +00:00
|
|
|
; link battle record data
|
|
|
|
wLinkBattleRecordBuffer::
|
|
|
|
wLinkBattleRecordName:: ds NAME_LENGTH
|
|
|
|
wLinkBattleRecordWins:: dw
|
|
|
|
wLinkBattleRecordLosses:: dw
|
|
|
|
wLinkBattleRecordDraws:: dw
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; miscellaneous
|
|
|
|
wTempDayOfWeek::
|
2020-10-29 18:45:40 +00:00
|
|
|
wPrevPartyLevel::
|
|
|
|
wCurBeatUpPartyMon::
|
|
|
|
wUnownPuzzleCornerTile::
|
|
|
|
wKeepSevenBiasChance::
|
|
|
|
wPokeFluteCuredSleep::
|
|
|
|
wTempRestorePPItem::
|
2017-12-23 16:34:55 +00:00
|
|
|
wApricorns::
|
2019-01-15 12:08:40 +00:00
|
|
|
wSuicuneFrame::
|
2017-12-23 16:34:55 +00:00
|
|
|
db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2020-10-23 20:04:15 +00:00
|
|
|
; debug color picker
|
|
|
|
wDebugColorIsTrainer:: db
|
|
|
|
wDebugColorIsShiny:: db
|
|
|
|
wDebugColorCurTMHM:: db
|
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
; mobile?
|
2020-10-29 18:45:40 +00:00
|
|
|
wd002:: ds 1
|
|
|
|
wd003:: ds 1
|
|
|
|
wd004:: ds 1
|
|
|
|
ds 3
|
2020-10-22 04:53:54 +00:00
|
|
|
wd008:: ds 2
|
|
|
|
ds 6
|
2015-02-08 08:03:32 +00:00
|
|
|
wd010:: ds 1
|
|
|
|
wd011:: ds 1
|
|
|
|
wd012:: ds 1
|
|
|
|
wd013:: ds 1
|
|
|
|
wd014:: ds 2
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
wd017:: ds 1
|
|
|
|
wd018:: ds 1
|
|
|
|
wd019:: ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 19
|
2015-02-08 08:03:32 +00:00
|
|
|
wd02d:: ds 1
|
|
|
|
wd02e:: ds 1
|
|
|
|
wd02f:: ds 1
|
|
|
|
wd030:: ds 1
|
|
|
|
wd031:: ds 1
|
|
|
|
wd032:: ds 1
|
|
|
|
wd033:: ds 1
|
|
|
|
wd034:: ds 2
|
|
|
|
wd036:: ds 2
|
2020-10-29 18:45:40 +00:00
|
|
|
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
SECTION UNION "Miscellaneous WRAM 1", WRAMX
|
|
|
|
|
|
|
|
; Every previous SECTION UNION takes up 60 or fewer bytes,
|
|
|
|
; except the initial "mon buffer" one.
|
2020-10-29 18:45:40 +00:00
|
|
|
ds 60
|
2015-11-12 04:38:57 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2019-04-08 22:50:10 +00:00
|
|
|
; trainer data
|
|
|
|
wSeenTrainerBank:: db
|
|
|
|
wSeenTrainerDistance:: db
|
|
|
|
wSeenTrainerDirection:: db
|
|
|
|
wTempTrainer::
|
|
|
|
wTempTrainerEventFlag:: dw
|
|
|
|
wTempTrainerClass:: db
|
|
|
|
wTempTrainerID:: db
|
|
|
|
wSeenTextPointer:: dw
|
|
|
|
wWinTextPointer:: dw
|
|
|
|
wLossTextPointer:: dw
|
|
|
|
wScriptAfterPointer:: dw
|
|
|
|
wRunningTrainerBattleScript:: db
|
|
|
|
wTempTrainerEnd::
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; menu items list
|
2018-01-23 22:39:09 +00:00
|
|
|
wMenuItemsList:: ds 16
|
|
|
|
wMenuItemsListEnd::
|
2013-05-03 19:40:45 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; fruit tree data
|
2018-01-23 22:39:09 +00:00
|
|
|
wCurFruitTree:: db
|
|
|
|
wCurFruit:: db
|
2013-06-27 04:34:49 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-08 22:50:10 +00:00
|
|
|
; item ball data
|
|
|
|
wItemBallData::
|
|
|
|
wItemBallItemID:: db
|
|
|
|
wItemBallQuantity:: db
|
|
|
|
wItemBallDataEnd::
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-08 22:50:10 +00:00
|
|
|
; hidden item data
|
|
|
|
wHiddenItemData::
|
|
|
|
wHiddenItemEvent:: dw
|
|
|
|
wHiddenItemID:: db
|
|
|
|
wHiddenItemDataEnd::
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; elevator data
|
2019-04-08 22:50:10 +00:00
|
|
|
wElevatorData::
|
2017-12-10 00:41:03 +00:00
|
|
|
wElevatorPointerBank:: db
|
2017-12-10 03:24:43 +00:00
|
|
|
wElevatorPointer:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
wElevatorOriginFloor:: db
|
2019-04-08 22:50:10 +00:00
|
|
|
wElevatorDataEnd::
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; coord event data
|
2019-04-08 22:50:10 +00:00
|
|
|
wCurCoordEvent::
|
2017-12-24 18:46:34 +00:00
|
|
|
wCurCoordEventSceneID:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wCurCoordEventMapY:: db
|
|
|
|
wCurCoordEventMapX:: db
|
|
|
|
ds 1
|
|
|
|
wCurCoordEventScriptAddr:: dw
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-24 18:46:34 +00:00
|
|
|
; BG event data
|
2019-04-08 22:50:10 +00:00
|
|
|
wCurBGEvent::
|
2017-12-24 18:46:34 +00:00
|
|
|
wCurBGEventYCoord:: db
|
|
|
|
wCurBGEventXCoord:: db
|
|
|
|
wCurBGEventType:: db
|
|
|
|
wCurBGEventScriptAddr:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; mart data
|
2019-04-08 22:50:10 +00:00
|
|
|
wMartType:: db
|
2018-01-23 22:39:09 +00:00
|
|
|
wMartPointerBank:: db
|
|
|
|
wMartPointer:: dw
|
2019-04-08 22:50:10 +00:00
|
|
|
wMartJumptableIndex:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wBargainShopFlags:: db
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; player movement data
|
2019-04-08 22:50:10 +00:00
|
|
|
wCurInput::
|
|
|
|
wFacingTileID:: db
|
|
|
|
wWalkingIntoNPC:: db
|
|
|
|
wWalkingIntoLand:: db
|
|
|
|
wWalkingIntoEdgeWarp:: db
|
2018-01-23 22:39:09 +00:00
|
|
|
wMovementAnimation:: db
|
|
|
|
wWalkingDirection:: db
|
|
|
|
wFacingDirection:: db
|
|
|
|
wWalkingX:: db
|
|
|
|
wWalkingY:: db
|
|
|
|
wWalkingTile:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 6
|
|
|
|
wPlayerTurningDirection:: db
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; std script buffer
|
2013-06-27 04:34:49 +00:00
|
|
|
ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
wJumpStdScriptBuffer:: ds 3
|
2015-11-10 04:01:45 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-08 22:50:10 +00:00
|
|
|
; phone script data
|
|
|
|
wCheckedTime:: db
|
|
|
|
wPhoneListIndex:: db
|
|
|
|
wNumAvailableCallers:: db
|
|
|
|
wAvailableCallers:: ds CONTACT_LIST_SIZE
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-08 22:50:10 +00:00
|
|
|
; phone caller contact
|
|
|
|
ds 1
|
|
|
|
wCallerContact:: ds PHONE_CONTACT_SIZE
|
2013-06-27 04:34:49 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; backup menu data
|
|
|
|
ds 7
|
2020-12-23 21:29:30 +00:00
|
|
|
wMenuCursorPositionBackup:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wMenuScrollPositionBackup:: db
|
2019-04-08 22:50:10 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-08 22:50:10 +00:00
|
|
|
; poison step data
|
|
|
|
wPoisonStepData::
|
|
|
|
wPoisonStepFlagSum:: db
|
|
|
|
wPoisonStepPartyFlags:: ds PARTY_LENGTH
|
|
|
|
wPoisonStepDataEnd::
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2019-04-08 22:50:10 +00:00
|
|
|
|
|
|
|
ds 23
|
2021-05-09 16:26:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
SECTION "More WRAM 1", WRAMX
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTMHMMoveNameBackup:: ds MOVE_NAME_LENGTH
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2020-11-25 01:11:17 +00:00
|
|
|
wStringBuffer1:: ds STRING_BUFFER_LENGTH
|
|
|
|
wStringBuffer2:: ds STRING_BUFFER_LENGTH
|
|
|
|
wStringBuffer3:: ds STRING_BUFFER_LENGTH
|
|
|
|
wStringBuffer4:: ds STRING_BUFFER_LENGTH
|
|
|
|
wStringBuffer5:: ds STRING_BUFFER_LENGTH
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wBattleMenuCursorPosition:: db
|
|
|
|
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2022-02-22 14:48:29 +00:00
|
|
|
wCurBattleMon::
|
|
|
|
; index of the player's mon currently in battle (0-5)
|
|
|
|
db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurMoveNum:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2017-12-09 20:14:51 +00:00
|
|
|
wLastPocket:: db
|
2016-03-02 03:31:21 +00:00
|
|
|
|
2017-12-09 20:14:51 +00:00
|
|
|
wPCItemsCursor:: db
|
|
|
|
wPartyMenuCursor:: db
|
|
|
|
wItemsPocketCursor:: db
|
|
|
|
wKeyItemsPocketCursor:: db
|
|
|
|
wBallsPocketCursor:: db
|
|
|
|
wTMHMPocketCursor:: db
|
2016-03-02 03:31:21 +00:00
|
|
|
|
2017-12-09 20:14:51 +00:00
|
|
|
wPCItemsScrollPosition:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
ds 1
|
2017-12-09 20:14:51 +00:00
|
|
|
wItemsPocketScrollPosition:: db
|
|
|
|
wKeyItemsPocketScrollPosition:: db
|
|
|
|
wBallsPocketScrollPosition:: db
|
|
|
|
wTMHMPocketScrollPosition:: db
|
2016-03-02 03:31:21 +00:00
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
wSwitchMon::
|
2015-12-13 19:15:16 +00:00
|
|
|
wSwitchItem::
|
2020-12-23 21:29:30 +00:00
|
|
|
wSwappingMove::
|
2018-07-29 05:27:33 +00:00
|
|
|
wd0e3:: ; mobile
|
2017-12-23 16:34:55 +00:00
|
|
|
db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2015-11-23 21:04:53 +00:00
|
|
|
wMenuScrollPosition:: ds 4
|
2017-12-10 00:41:03 +00:00
|
|
|
|
|
|
|
wQueuedScriptBank:: db
|
|
|
|
wQueuedScriptAddr:: dw
|
|
|
|
|
|
|
|
wNumMoves:: db
|
|
|
|
|
2015-11-18 23:35:44 +00:00
|
|
|
wFieldMoveSucceeded::
|
2015-12-13 19:15:16 +00:00
|
|
|
wItemEffectSucceeded::
|
2018-01-23 21:45:34 +00:00
|
|
|
wBattlePlayerAction::
|
2015-11-23 21:04:53 +00:00
|
|
|
; 0 - use move
|
|
|
|
; 1 - use item
|
|
|
|
; 2 - switch
|
2015-12-11 16:33:14 +00:00
|
|
|
wSolvedUnownPuzzle::
|
2020-06-21 03:03:40 +00:00
|
|
|
db
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wVramState::
|
2012-10-09 06:32:05 +00:00
|
|
|
; bit 0: overworld sprite updating on/off
|
2021-03-11 22:43:20 +00:00
|
|
|
; bit 1: something to do with sprite updates
|
2012-10-09 06:32:05 +00:00
|
|
|
; bit 6: something to do with text
|
|
|
|
; bit 7: on when surf initiates
|
|
|
|
; flickers when climbing waterfall
|
2017-12-09 20:14:51 +00:00
|
|
|
db
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleResult::
|
2018-04-05 15:44:02 +00:00
|
|
|
; WIN, LOSE, or DRAW
|
|
|
|
; bit 6: caught celebi
|
|
|
|
; bit 7: box full
|
|
|
|
db
|
2020-06-21 03:03:40 +00:00
|
|
|
wUsingItemWithSelect:: db
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2017-12-09 20:14:51 +00:00
|
|
|
; mart data
|
2021-03-08 14:41:55 +00:00
|
|
|
wCurMartCount:: db
|
|
|
|
wCurMartItems:: ds 15
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-09 20:14:51 +00:00
|
|
|
; elevator data
|
2021-03-08 14:41:55 +00:00
|
|
|
wCurElevatorCount:: db
|
|
|
|
wCurElevatorFloors:: ds 15
|
2017-12-09 20:14:51 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-09 20:14:51 +00:00
|
|
|
; mailbox data
|
2017-12-28 05:56:45 +00:00
|
|
|
wCurMessageScrollPosition:: db
|
2017-12-09 20:14:51 +00:00
|
|
|
wCurMessageIndex:: db
|
|
|
|
wMailboxCount:: db
|
2015-11-18 18:01:55 +00:00
|
|
|
wMailboxItems:: ds MAILBOX_CAPACITY
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2017-12-09 20:14:51 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wListPointer:: dw
|
2020-10-28 17:35:39 +00:00
|
|
|
wUnusedNamesPointer:: dw
|
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wItemAttributesPointer:: dw
|
2013-04-30 01:19:42 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurItem:: db
|
|
|
|
wCurItemQuantity::
|
2015-11-11 19:12:46 +00:00
|
|
|
wMartItemID::
|
2017-12-09 20:14:51 +00:00
|
|
|
db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurPartySpecies:: db
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurPartyMon::
|
2022-02-22 14:48:29 +00:00
|
|
|
; index of mon's party location (0-5)
|
2017-12-09 20:14:51 +00:00
|
|
|
db
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2015-12-26 23:11:55 +00:00
|
|
|
wWhichHPBar::
|
|
|
|
; 0: Enemy
|
|
|
|
; 1: Player
|
2016-03-09 00:54:06 +00:00
|
|
|
; 2: Party Menu
|
2017-12-09 20:14:51 +00:00
|
|
|
db
|
2020-06-21 20:27:43 +00:00
|
|
|
|
2015-11-08 15:59:28 +00:00
|
|
|
wPokemonWithdrawDepositParameter::
|
|
|
|
; 0: Take from PC
|
|
|
|
; 1: Put into PC
|
2017-12-10 18:37:15 +00:00
|
|
|
; 2: Take from Day-Care
|
|
|
|
; 3: Put into Day-Care
|
2017-12-09 20:14:51 +00:00
|
|
|
db
|
2013-04-12 21:21:22 +00:00
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wItemQuantityChange:: db
|
|
|
|
wItemQuantity:: db
|
2013-04-12 21:21:22 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTempMon:: party_struct wTempMon
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wSpriteFlags:: db
|
2013-01-14 08:40:27 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wHandlePlayerStep:: db
|
2019-01-25 02:41:14 +00:00
|
|
|
|
|
|
|
ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPartyMenuActionText:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wItemAttributeValue:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurPartyLevel:: db
|
2017-12-09 20:14:51 +00:00
|
|
|
|
2020-06-21 20:27:43 +00:00
|
|
|
wScrollingMenuListSize:: db
|
|
|
|
|
|
|
|
ds 1
|
2015-11-12 16:10:19 +00:00
|
|
|
|
|
|
|
; used when following a map warp
|
2017-12-09 20:14:51 +00:00
|
|
|
wNextWarp:: db
|
|
|
|
wNextMapGroup:: db
|
|
|
|
wNextMapNumber:: db
|
|
|
|
wPrevWarp:: db
|
|
|
|
wPrevMapGroup:: db
|
|
|
|
wPrevMapNumber:: db
|
2015-11-12 16:10:19 +00:00
|
|
|
|
2017-12-09 20:14:51 +00:00
|
|
|
wPlayerBGMapOffsetX:: db ; used in FollowNotExact; unit is pixels
|
|
|
|
wPlayerBGMapOffsetY:: db ; used in FollowNotExact; unit is pixels
|
2015-11-15 04:02:38 +00:00
|
|
|
|
2015-11-13 05:49:27 +00:00
|
|
|
; Player movement
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerStepVectorX:: db
|
|
|
|
wPlayerStepVectorY:: db
|
|
|
|
wPlayerStepFlags:: db
|
|
|
|
wPlayerStepDirection:: db
|
2015-12-25 03:58:42 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBGMapAnchor:: dw
|
2013-05-13 19:37:14 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2018-10-28 00:21:00 +00:00
|
|
|
wUsedSprites:: ds SPRITE_GFX_LIST_CAPACITY * 2
|
2018-01-23 22:39:09 +00:00
|
|
|
wUsedSpritesEnd::
|
2015-11-09 21:41:09 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-09 20:14:51 +00:00
|
|
|
ds 31
|
2017-12-10 00:41:03 +00:00
|
|
|
wd173:: db ; related to command queue type 3
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wOverworldMapAnchor:: dw
|
|
|
|
wMetatileStandingY:: db
|
|
|
|
wMetatileStandingX:: db
|
2017-12-09 20:14:51 +00:00
|
|
|
|
2018-02-03 21:58:49 +00:00
|
|
|
wMapPartial::
|
2020-06-21 03:03:40 +00:00
|
|
|
wMapAttributesBank:: db
|
|
|
|
wMapTileset:: db
|
|
|
|
wEnvironment:: db
|
|
|
|
wMapAttributesPointer:: dw
|
2018-02-03 21:58:49 +00:00
|
|
|
wMapPartialEnd::
|
2013-07-20 05:25:20 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMapAttributes::
|
|
|
|
wMapBorderBlock:: db
|
2018-01-17 03:57:19 +00:00
|
|
|
; width/height are in blocks (2x2 walkable tiles, 4x4 graphics tiles)
|
2020-06-21 03:03:40 +00:00
|
|
|
wMapHeight:: db
|
|
|
|
wMapWidth:: db
|
|
|
|
wMapBlocksBank:: db
|
|
|
|
wMapBlocksPointer:: dw
|
|
|
|
wMapScriptsBank:: db
|
|
|
|
wMapScriptsPointer:: dw
|
|
|
|
wMapEventsPointer:: dw
|
2013-10-05 02:03:34 +00:00
|
|
|
; bit set
|
2020-06-21 03:03:40 +00:00
|
|
|
wMapConnections:: db
|
2018-02-03 21:58:49 +00:00
|
|
|
wMapAttributesEnd::
|
2017-12-09 20:14:51 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wNorthMapConnection:: map_connection_struct wNorth
|
|
|
|
wSouthMapConnection:: map_connection_struct wSouth
|
|
|
|
wWestMapConnection:: map_connection_struct wWest
|
|
|
|
wEastMapConnection:: map_connection_struct wEast
|
2018-01-23 22:39:09 +00:00
|
|
|
|
|
|
|
wTileset::
|
2020-06-21 03:03:40 +00:00
|
|
|
wTilesetBank:: db
|
|
|
|
wTilesetAddress:: dw
|
|
|
|
wTilesetBlocksBank:: db
|
|
|
|
wTilesetBlocksAddress:: dw
|
|
|
|
wTilesetCollisionBank:: db
|
|
|
|
wTilesetCollisionAddress:: dw
|
|
|
|
wTilesetAnim:: dw ; bank 3f
|
|
|
|
ds 2 ; unused
|
|
|
|
wTilesetPalettes:: dw ; bank 3f
|
2018-01-23 22:39:09 +00:00
|
|
|
wTilesetEnd::
|
2021-03-04 03:22:41 +00:00
|
|
|
assert wTilesetEnd - wTileset == TILESET_LENGTH
|
2017-12-09 20:14:51 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEvolvableFlags:: flag_array PARTY_LENGTH
|
2013-04-19 07:48:07 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wForceEvolution:: db
|
2016-05-16 13:36:24 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2020-11-04 04:25:22 +00:00
|
|
|
; general-purpose HP buffers
|
|
|
|
wHPBuffer1:: dw
|
|
|
|
wHPBuffer2:: dw
|
|
|
|
wHPBuffer3:: dw
|
2020-06-21 03:03:40 +00:00
|
|
|
|
|
|
|
NEXTU
|
2016-05-16 13:36:24 +00:00
|
|
|
; HP bar animations
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurHPAnimMaxHP:: dw
|
|
|
|
wCurHPAnimOldHP:: dw
|
|
|
|
wCurHPAnimNewHP:: dw
|
|
|
|
wCurHPAnimPal:: db
|
|
|
|
wCurHPBarPixels:: db
|
|
|
|
wNewHPBarPixels:: db
|
|
|
|
wCurHPAnimDeltaHP:: dw
|
|
|
|
wCurHPAnimLowHP:: db
|
|
|
|
wCurHPAnimHighHP:: db
|
|
|
|
|
2020-11-04 00:53:07 +00:00
|
|
|
NEXTU
|
2020-11-04 03:45:12 +00:00
|
|
|
; move AI
|
2020-11-04 00:53:07 +00:00
|
|
|
wEnemyAIMoveScores:: ds NUM_MOVES
|
|
|
|
|
2020-11-04 03:45:12 +00:00
|
|
|
NEXTU
|
|
|
|
; switch AI
|
|
|
|
wEnemyEffectivenessVsPlayerMons:: flag_array PARTY_LENGTH
|
|
|
|
wPlayerEffectivenessVsEnemyMons:: flag_array PARTY_LENGTH
|
|
|
|
|
2020-11-04 00:53:07 +00:00
|
|
|
NEXTU
|
|
|
|
; battle HUD
|
|
|
|
wBattleHUDTiles:: ds PARTY_LENGTH
|
|
|
|
|
2020-11-04 03:45:12 +00:00
|
|
|
NEXTU
|
|
|
|
; thrown ball data
|
|
|
|
wFinalCatchRate:: db
|
|
|
|
wThrownBallWobbleCount:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; evolution data
|
2020-06-21 03:03:40 +00:00
|
|
|
wEvolutionOldSpecies:: db
|
|
|
|
wEvolutionNewSpecies:: db
|
2020-11-04 00:53:07 +00:00
|
|
|
wEvolutionPicOffset:: db
|
|
|
|
wEvolutionCanceled:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; experience
|
|
|
|
wExpToNextLevel:: ds 3
|
|
|
|
|
2020-11-04 03:45:12 +00:00
|
|
|
NEXTU
|
|
|
|
; PP Up
|
|
|
|
wPPUpPPBuffer:: ds NUM_MOVES
|
|
|
|
|
2020-11-04 00:53:07 +00:00
|
|
|
NEXTU
|
|
|
|
; lucky number show
|
|
|
|
wMonIDDigitsBuffer:: ds 5
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; mon submenu
|
|
|
|
wMonSubmenuCount:: db
|
|
|
|
wMonSubmenuItems:: ds NUM_MONMENU_ITEMS + 1
|
|
|
|
|
2020-11-04 03:45:12 +00:00
|
|
|
NEXTU
|
|
|
|
; field move data
|
|
|
|
wFieldMoveData::
|
|
|
|
wFieldMoveJumptableIndex:: db
|
|
|
|
wEscapeRopeOrDigType::
|
|
|
|
wSurfingPlayerState::
|
|
|
|
wFishingRodUsed:: db
|
|
|
|
wCutWhirlpoolOverworldBlockAddr:: dw
|
|
|
|
wCutWhirlpoolReplacementBlock:: db
|
|
|
|
wCutWhirlpoolAnimationType::
|
|
|
|
wStrengthSpecies::
|
|
|
|
wFishingResult:: db
|
|
|
|
ds 1
|
|
|
|
wFieldMoveDataEnd::
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; hidden items
|
|
|
|
wCurMapScriptBank:: db
|
|
|
|
wRemainingBGEventCount:: db
|
|
|
|
wBottomRightYCoord:: db
|
|
|
|
wBottomRightXCoord:: db
|
|
|
|
|
2020-11-04 00:53:07 +00:00
|
|
|
NEXTU
|
|
|
|
; heal machine anim
|
|
|
|
wHealMachineAnimType:: db
|
|
|
|
wHealMachineTempOBP1:: db
|
|
|
|
wHealMachineAnimState:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; decorations
|
|
|
|
wCurDecoration:: db
|
|
|
|
wSelectedDecorationSide:: db
|
|
|
|
wSelectedDecoration:: db
|
|
|
|
wOtherDecoration:: db
|
|
|
|
wChangedDecorations:: db
|
|
|
|
wCurDecorationCategory:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; withdraw/deposit items
|
2020-12-23 21:29:30 +00:00
|
|
|
wPCItemQuantityChange:: db
|
2020-11-04 00:53:07 +00:00
|
|
|
wPCItemQuantity:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; mail
|
|
|
|
wCurMailAuthorID:: dw
|
|
|
|
wCurMailIndex:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; kurt
|
|
|
|
wKurtApricornCount:: db
|
|
|
|
wKurtApricornItems:: ds 10
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; tree mons
|
|
|
|
wTreeMonCoordScore:: db
|
|
|
|
wTreeMonOTIDScore:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; restart clock
|
|
|
|
wRestartClockCurDivision:: db
|
|
|
|
wRestartClockPrevDivision:: db
|
|
|
|
wRestartClockUpArrowYCoord:: db
|
|
|
|
wRestartClockDay:: db
|
|
|
|
wRestartClockHour:: db
|
|
|
|
wRestartClockMin:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-11-01 18:42:12 +00:00
|
|
|
NEXTU
|
|
|
|
; link
|
|
|
|
ds 9
|
|
|
|
wLinkBattleRNPreamble:: ds SERIAL_RN_PREAMBLE_LENGTH
|
|
|
|
wLinkBattleRNs:: ds SERIAL_RNS_LENGTH
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-10 00:41:03 +00:00
|
|
|
; mobile
|
2020-11-04 04:25:22 +00:00
|
|
|
wd1ea:: ds 1
|
|
|
|
wd1eb:: ds 1
|
2015-02-08 08:03:32 +00:00
|
|
|
wd1ec:: ds 1
|
|
|
|
wd1ed:: ds 1
|
|
|
|
wd1ee:: ds 1
|
|
|
|
wd1ef:: ds 1
|
|
|
|
wd1f0:: ds 1
|
|
|
|
wd1f1:: ds 1
|
|
|
|
wd1f2:: ds 1
|
2020-11-01 18:42:12 +00:00
|
|
|
wd1f3:: ds 1
|
2020-11-04 04:25:22 +00:00
|
|
|
ds 6
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2020-11-04 00:53:07 +00:00
|
|
|
; miscellaneous bytes
|
|
|
|
wSkipMovesBeforeLevelUp::
|
|
|
|
wRegisteredPhoneNumbers::
|
|
|
|
wListMovesLineSpacing:: db
|
|
|
|
wSwitchMonTo:: db
|
|
|
|
wSwitchMonFrom:: db
|
|
|
|
ds 4
|
2018-01-23 22:39:09 +00:00
|
|
|
wCurEnemyItem:: db
|
2020-11-04 00:53:07 +00:00
|
|
|
|
|
|
|
NEXTU
|
|
|
|
; miscellaneous words
|
|
|
|
wBuySellItemPrice::
|
|
|
|
wTempMysteryGiftTimer::
|
|
|
|
wMagikarpLength:: dw
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTempEnemyMonSpecies:: db
|
|
|
|
wTempBattleMonSpecies:: db
|
2013-04-29 19:42:31 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyMon:: battle_struct wEnemyMon
|
2020-10-26 19:45:57 +00:00
|
|
|
wEnemyMonBaseStats:: ds NUM_EXP_STATS
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnemyMonCatchRate:: db
|
|
|
|
wEnemyMonBaseExp:: db
|
2018-01-23 22:39:09 +00:00
|
|
|
wEnemyMonEnd::
|
2013-03-26 09:22:22 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleMode::
|
2012-12-14 08:00:10 +00:00
|
|
|
; 0: overworld
|
|
|
|
; 1: wild battle
|
2012-11-24 02:19:02 +00:00
|
|
|
; 2: trainer battle
|
2017-12-09 20:14:51 +00:00
|
|
|
db
|
|
|
|
|
2018-01-23 22:39:09 +00:00
|
|
|
wTempWildMonSpecies:: db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wOtherTrainerClass::
|
2012-09-11 03:20:58 +00:00
|
|
|
; class (Youngster, Bug Catcher, etc.) of opposing trainer
|
|
|
|
; 0 if opponent is a wild Pokémon, not a trainer
|
2017-12-09 20:14:51 +00:00
|
|
|
db
|
2012-09-11 03:20:58 +00:00
|
|
|
|
2017-12-09 20:14:51 +00:00
|
|
|
; BATTLETYPE_* values
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleType:: db
|
2012-09-11 03:20:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wOtherTrainerID::
|
2012-09-11 03:20:58 +00:00
|
|
|
; which trainer of the class that you're fighting
|
|
|
|
; (Joey, Mikey, Albert, etc.)
|
2017-12-09 20:14:51 +00:00
|
|
|
db
|
2012-09-11 03:20:58 +00:00
|
|
|
|
2017-12-09 20:14:51 +00:00
|
|
|
wForcedSwitch:: db
|
2013-05-04 06:14:02 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTrainerClass:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wUnownLetter:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2017-12-09 20:14:51 +00:00
|
|
|
wMoveSelectionMenuType:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2017-12-15 04:00:54 +00:00
|
|
|
; corresponds to the data/pokemon/base_stats/*.asm contents
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurBaseData::
|
|
|
|
wBaseDexNo:: db
|
|
|
|
wBaseStats::
|
|
|
|
wBaseHP:: db
|
|
|
|
wBaseAttack:: db
|
|
|
|
wBaseDefense:: db
|
|
|
|
wBaseSpeed:: db
|
|
|
|
wBaseSpecialAttack:: db
|
|
|
|
wBaseSpecialDefense:: db
|
|
|
|
wBaseType::
|
|
|
|
wBaseType1:: db
|
|
|
|
wBaseType2:: db
|
|
|
|
wBaseCatchRate:: db
|
|
|
|
wBaseExp:: db
|
|
|
|
wBaseItems::
|
|
|
|
wBaseItem1:: db
|
|
|
|
wBaseItem2:: db
|
|
|
|
wBaseGender:: db
|
|
|
|
wBaseUnknown1:: db
|
|
|
|
wBaseEggSteps:: db
|
|
|
|
wBaseUnknown2:: db
|
|
|
|
wBasePicSize:: db
|
|
|
|
wBaseUnusedFrontpic:: dw
|
|
|
|
wBaseUnusedBackpic:: dw
|
|
|
|
wBaseGrowthRate:: db
|
|
|
|
wBaseEggGroups:: db
|
|
|
|
wBaseTMHM:: flag_array NUM_TM_HM_TUTOR
|
2018-01-23 22:39:09 +00:00
|
|
|
wCurBaseDataEnd::
|
2021-03-04 03:22:41 +00:00
|
|
|
assert wCurBaseDataEnd - wCurBaseData == BASE_DATA_SIZE
|
2018-01-23 22:39:09 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurDamage:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 2
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMornEncounterRate:: db
|
|
|
|
wDayEncounterRate:: db
|
|
|
|
wNiteEncounterRate:: db
|
|
|
|
wWaterEncounterRate:: db
|
2016-01-04 13:43:55 +00:00
|
|
|
wListMoves_MoveIndicesBuffer:: ds NUM_MOVES
|
2017-12-09 20:14:51 +00:00
|
|
|
wPutativeTMHMMove:: db
|
|
|
|
wInitListType:: db
|
|
|
|
wBattleHasJustStarted:: db
|
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wNamedObjectIndex::
|
|
|
|
wTextDecimalByte::
|
2018-07-28 23:27:34 +00:00
|
|
|
wTempByteValue::
|
|
|
|
wNumSetBits::
|
2015-11-07 01:55:16 +00:00
|
|
|
wTypeMatchup::
|
2018-07-28 23:27:34 +00:00
|
|
|
wCurType::
|
|
|
|
wTempSpecies::
|
|
|
|
wTempIconSpecies::
|
|
|
|
wTempTMHM::
|
|
|
|
wTempPP::
|
|
|
|
wNextBoxOrPartyIndex::
|
|
|
|
wChosenCableClubRoom::
|
|
|
|
wBreedingCompatibility::
|
|
|
|
wMoveGrammar::
|
|
|
|
wApplyStatLevelMultipliersToEnemy::
|
|
|
|
wUsePPUp::
|
|
|
|
wd265:: ; mobile
|
2017-12-23 16:34:55 +00:00
|
|
|
db
|
2012-09-11 03:20:58 +00:00
|
|
|
|
2017-12-09 20:14:51 +00:00
|
|
|
wFailedToFlee:: db
|
|
|
|
wNumFleeAttempts:: db
|
|
|
|
wMonTriedToEvolve:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTimeOfDay:: db
|
2012-09-11 03:20:58 +00:00
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
ds 1
|
2015-12-02 22:59:05 +00:00
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2017-06-17 23:14:55 +00:00
|
|
|
SECTION "Enemy Party", WRAMX
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2017-12-23 16:34:55 +00:00
|
|
|
wPokedexShowPointerAddr:: dw
|
|
|
|
wPokedexShowPointerBank:: db
|
2015-11-10 04:01:45 +00:00
|
|
|
ds 3
|
2019-04-19 15:35:27 +00:00
|
|
|
wd271:: dw ; mobile
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-19 15:35:27 +00:00
|
|
|
wUnusedEggHatchFlag:: db
|
2015-12-02 22:59:05 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-23 16:47:28 +00:00
|
|
|
; enemy party
|
2020-12-09 02:24:48 +00:00
|
|
|
wOTPartyData::
|
2020-06-21 03:03:40 +00:00
|
|
|
wOTPlayerName:: ds NAME_LENGTH
|
|
|
|
wOTPlayerID:: dw
|
2015-11-28 20:13:40 +00:00
|
|
|
ds 8
|
2020-06-21 03:03:40 +00:00
|
|
|
wOTPartyCount:: db
|
|
|
|
wOTPartySpecies:: ds PARTY_LENGTH
|
2018-02-03 23:21:53 +00:00
|
|
|
wOTPartyEnd:: db ; older code doesn't check PartyCount
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2014-06-13 01:32:42 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2017-12-10 00:41:03 +00:00
|
|
|
; ot party mons
|
2018-01-23 22:39:09 +00:00
|
|
|
wOTPartyMons::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wOTPartyMon1 - wOTPartyMon6
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wOTPartyMon{d:n}:: party_struct wOTPartyMon{d:n}
|
|
|
|
endr
|
2018-01-23 22:39:09 +00:00
|
|
|
|
2021-03-17 20:16:02 +00:00
|
|
|
wOTPartyMonOTs::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wOTPartyMon1OT - wOTPartyMon6OT
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wOTPartyMon{d:n}OT:: ds NAME_LENGTH
|
|
|
|
endr
|
2021-03-17 20:16:02 +00:00
|
|
|
|
|
|
|
wOTPartyMonNicknames::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wOTPartyMon1Nickname - wOTPartyMon6Nickname
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wOTPartyMon{d:n}Nickname:: ds MON_NAME_LENGTH
|
|
|
|
endr
|
2018-01-23 22:39:09 +00:00
|
|
|
wOTPartyDataEnd::
|
2017-12-23 16:34:55 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-23 16:34:55 +00:00
|
|
|
; catch tutorial dude pack
|
|
|
|
wDudeNumItems:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wDudeItems:: ds 2 * 4 + 1
|
2017-12-23 16:34:55 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wDudeNumKeyItems:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wDudeKeyItems:: ds 18 + 1
|
2017-12-23 16:34:55 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wDudeNumBalls:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wDudeBalls:: ds 2 * 4 + 1
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2014-06-14 04:18:14 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
ds 4
|
|
|
|
|
2019-04-19 15:35:27 +00:00
|
|
|
wd430:: ; mobile
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleAction:: db
|
2014-06-14 04:18:14 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLinkBattleSentAction:: db
|
|
|
|
wMapStatus:: db
|
|
|
|
wMapEventStatus:: db
|
2013-12-27 10:56:23 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wScriptFlags::
|
2021-06-09 00:35:04 +00:00
|
|
|
; bit 3: run deferred script
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2020-10-26 19:45:57 +00:00
|
|
|
ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wScriptFlags2::
|
2015-11-13 23:59:49 +00:00
|
|
|
; bit 0: count steps
|
2017-12-24 18:46:34 +00:00
|
|
|
; bit 1: coord events
|
2015-11-13 23:59:49 +00:00
|
|
|
; bit 2: warps and connections
|
|
|
|
; bit 4: wild encounters
|
|
|
|
; bit 5: unknown
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2013-02-28 21:45:34 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wScriptMode:: db
|
|
|
|
wScriptRunning:: db
|
|
|
|
wScriptBank:: db
|
|
|
|
wScriptPos:: dw
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wScriptStackSize:: db
|
2015-12-02 02:54:11 +00:00
|
|
|
wScriptStack:: ds 3 * 5
|
2015-11-16 16:53:26 +00:00
|
|
|
ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wScriptDelay:: db
|
2013-07-04 09:37:20 +00:00
|
|
|
|
2021-06-09 00:35:04 +00:00
|
|
|
wDeferredScriptBank::
|
2017-12-23 16:34:55 +00:00
|
|
|
wScriptTextBank::
|
2020-06-21 03:03:40 +00:00
|
|
|
db
|
2021-06-09 00:35:04 +00:00
|
|
|
wDeferredScriptAddr::
|
2017-12-23 16:34:55 +00:00
|
|
|
wScriptTextAddr::
|
2020-06-21 03:03:40 +00:00
|
|
|
dw
|
2016-01-12 17:46:18 +00:00
|
|
|
ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wWildEncounterCooldown:: db
|
2020-06-21 20:27:43 +00:00
|
|
|
|
2020-10-04 23:43:28 +00:00
|
|
|
wXYComparePointer:: dw
|
2015-02-10 22:16:31 +00:00
|
|
|
ds 4
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2020-08-21 20:03:15 +00:00
|
|
|
wBattleScriptFlags:: db
|
|
|
|
ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerSpriteSetupFlags::
|
2018-01-23 22:39:09 +00:00
|
|
|
; bit 7: if set, cancel wPlayerAction
|
2018-01-22 19:34:55 +00:00
|
|
|
; bit 6: RefreshMapSprites doesn't reload player sprite
|
2016-01-04 13:43:55 +00:00
|
|
|
; bit 5: if set, set facing according to bits 0-1
|
2018-01-22 19:34:55 +00:00
|
|
|
; bit 2: female player has been transformed into male
|
2016-01-04 13:43:55 +00:00
|
|
|
; bits 0-1: direction facing
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2020-08-21 20:03:15 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMapReentryScriptQueueFlag:: db
|
|
|
|
wMapReentryScriptBank:: db
|
|
|
|
wMapReentryScriptAddress:: dw
|
2020-06-21 20:27:43 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
ds 4
|
2020-06-21 20:27:43 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTimeCyclesSinceLastCall:: db
|
|
|
|
wReceiveCallDelay_MinsRemaining:: db
|
|
|
|
wReceiveCallDelay_StartTime:: ds 3
|
2020-06-21 20:27:43 +00:00
|
|
|
|
2015-10-24 14:34:19 +00:00
|
|
|
ds 3
|
2020-06-21 20:27:43 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBugContestMinsRemaining:: db
|
|
|
|
wBugContestSecsRemaining:: db
|
2020-06-21 20:27:43 +00:00
|
|
|
|
2015-12-17 20:14:51 +00:00
|
|
|
ds 2
|
2020-06-21 20:27:43 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMapStatusEnd::
|
2018-02-04 02:22:06 +00:00
|
|
|
|
|
|
|
ds 2
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2015-08-20 04:14:15 +00:00
|
|
|
wCrystalData::
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerGender::
|
2013-02-04 05:22:53 +00:00
|
|
|
; bit 0:
|
|
|
|
; 0 male
|
|
|
|
; 1 female
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2015-02-08 08:03:32 +00:00
|
|
|
wd473:: ds 1
|
|
|
|
wd474:: ds 1
|
|
|
|
wd475:: ds 1
|
|
|
|
wd476:: ds 1
|
|
|
|
wd477:: ds 1
|
|
|
|
wd478:: ds 1
|
2015-08-20 04:14:15 +00:00
|
|
|
wCrystalDataEnd::
|
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
wd479:: ds 2
|
|
|
|
|
2015-10-13 18:29:34 +00:00
|
|
|
wGameData::
|
2015-08-20 04:14:15 +00:00
|
|
|
wPlayerData::
|
2020-06-21 20:27:43 +00:00
|
|
|
wPlayerID:: dw
|
2013-07-21 09:53:04 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerName:: ds NAME_LENGTH
|
|
|
|
wMomsName:: ds NAME_LENGTH
|
|
|
|
wRivalName:: ds NAME_LENGTH
|
|
|
|
wRedsName:: ds NAME_LENGTH
|
|
|
|
wGreensName:: ds NAME_LENGTH
|
2013-05-13 00:36:40 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wSavedAtLeastOnce:: db
|
|
|
|
wSpawnAfterChampion:: db
|
2012-07-05 03:42:39 +00:00
|
|
|
|
2012-11-24 02:19:02 +00:00
|
|
|
; init time set at newgame
|
2020-10-26 19:45:57 +00:00
|
|
|
wStartDay:: db
|
|
|
|
wStartHour:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wStartMinute:: db
|
|
|
|
wStartSecond:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wRTC:: ds 4
|
2020-06-16 03:28:24 +00:00
|
|
|
|
2019-04-10 18:46:16 +00:00
|
|
|
ds 4
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wDST::
|
2018-01-22 18:57:44 +00:00
|
|
|
; bit 7: dst
|
|
|
|
db
|
2014-07-24 17:45:30 +00:00
|
|
|
|
2018-06-13 03:29:15 +00:00
|
|
|
wGameTime:: ; used only for BANK(wGameTime)
|
2020-06-21 03:03:40 +00:00
|
|
|
wGameTimeCap:: db
|
|
|
|
wGameTimeHours:: dw
|
|
|
|
wGameTimeMinutes:: db
|
|
|
|
wGameTimeSeconds:: db
|
|
|
|
wGameTimeFrames:: db
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
ds 2
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurDay:: db
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
|
|
|
|
wObjectFollow_Leader:: db
|
|
|
|
wObjectFollow_Follower:: db
|
|
|
|
wCenteredObject:: db
|
|
|
|
wFollowerMovementQueueLength:: db
|
2015-12-29 18:15:58 +00:00
|
|
|
wFollowMovementQueue:: ds 5
|
2013-07-22 07:00:07 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wObjectStructs::
|
2021-04-27 16:11:39 +00:00
|
|
|
wPlayerStruct:: object_struct wPlayer ; player is object struct 0
|
|
|
|
; wObjectStruct1 - wObjectStruct12
|
|
|
|
for n, 1, NUM_OBJECT_STRUCTS
|
|
|
|
wObject{d:n}Struct:: object_struct wObject{d:n}
|
|
|
|
endr
|
2013-06-27 04:34:49 +00:00
|
|
|
|
2015-11-19 04:16:25 +00:00
|
|
|
wCmdQueue:: ds CMDQUEUE_CAPACITY * CMDQUEUE_ENTRY_SIZE
|
2017-12-10 00:41:03 +00:00
|
|
|
|
|
|
|
ds 40
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMapObjects::
|
2021-04-27 16:11:39 +00:00
|
|
|
wPlayerObject:: map_object wPlayer ; player is map object 0
|
|
|
|
; wMap1Object - wMap15Object
|
|
|
|
for n, 1, NUM_OBJECTS
|
|
|
|
wMap{d:n}Object:: map_object wMap{d:n}
|
|
|
|
endr
|
2013-07-04 08:11:28 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wObjectMasks:: ds NUM_OBJECTS
|
2013-07-04 08:11:28 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wVariableSprites:: ds $100 - SPRITE_VARS
|
2013-07-08 05:35:41 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEnteredMapFromContinue:: db
|
2015-11-10 16:05:26 +00:00
|
|
|
ds 2
|
2020-06-21 03:03:40 +00:00
|
|
|
wTimeOfDayPal:: db
|
2012-12-23 08:21:19 +00:00
|
|
|
ds 4
|
2020-06-21 03:03:40 +00:00
|
|
|
wTimeOfDayPalFlags:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wTimeOfDayPalset:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurTimeOfDay:: db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
ds 1
|
2013-07-02 02:55:13 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wSecretID:: dw
|
2020-06-21 03:03:40 +00:00
|
|
|
wStatusFlags::
|
2018-01-22 18:57:44 +00:00
|
|
|
; bit 0: pokedex
|
|
|
|
; bit 1: unown dex
|
2018-01-22 20:40:43 +00:00
|
|
|
; bit 2: flash
|
|
|
|
; bit 3: caught pokerus
|
2018-01-22 18:57:44 +00:00
|
|
|
; bit 4: rocket signal
|
|
|
|
; bit 5: wild encounters on/off
|
|
|
|
; bit 6: hall of fame
|
|
|
|
; bit 7: bug contest on
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2015-11-15 19:59:38 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wStatusFlags2::
|
2018-01-22 18:57:44 +00:00
|
|
|
; bit 0: rockets
|
2018-01-22 20:40:43 +00:00
|
|
|
; bit 1: safari game (unused)
|
2018-01-22 18:57:44 +00:00
|
|
|
; bit 2: bug contest timer
|
|
|
|
; bit 3: unused
|
|
|
|
; bit 4: bike shop call
|
2018-01-22 20:40:43 +00:00
|
|
|
; bit 5: can use sweet scent
|
|
|
|
; bit 6: reached goldenrod
|
2018-01-22 18:57:44 +00:00
|
|
|
; bit 7: rockets in mahogany
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMoney:: ds 3
|
|
|
|
wMomsMoney:: ds 3
|
2018-01-22 18:57:44 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wMomSavingMoney::
|
2018-01-22 18:57:44 +00:00
|
|
|
; bit 0: saving some money
|
|
|
|
; bit 1: saving half money (unused)
|
|
|
|
; bit 2: saving all money (unused)
|
|
|
|
; bit 7: active
|
|
|
|
db
|
2013-08-30 21:48:59 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCoins:: dw
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2018-01-23 21:45:34 +00:00
|
|
|
wBadges::
|
2020-06-21 03:03:40 +00:00
|
|
|
wJohtoBadges:: flag_array NUM_JOHTO_BADGES
|
|
|
|
wKantoBadges:: flag_array NUM_KANTO_BADGES
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wTMsHMs:: ds NUM_TMS + NUM_HMS
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wNumItems:: db
|
|
|
|
wItems:: ds MAX_ITEMS * 2 + 1
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wNumKeyItems:: db
|
|
|
|
wKeyItems:: ds MAX_KEY_ITEMS + 1
|
2013-07-03 03:01:34 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wNumBalls:: db
|
|
|
|
wBalls:: ds MAX_BALLS * 2 + 1
|
2013-08-30 04:07:51 +00:00
|
|
|
|
2019-03-18 15:43:58 +00:00
|
|
|
wNumPCItems:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wPCItems:: ds MAX_PC_ITEMS * 2 + 1
|
2013-08-30 04:07:51 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wPokegearFlags::
|
2016-01-10 04:41:03 +00:00
|
|
|
; bit 0: map
|
|
|
|
; bit 1: radio
|
|
|
|
; bit 2: phone
|
|
|
|
; bit 3: expn
|
|
|
|
; bit 7: on/off
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
|
|
|
wRadioTuningKnob:: db
|
|
|
|
wLastDexMode:: db
|
2013-07-03 03:01:34 +00:00
|
|
|
ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wWhichRegisteredItem:: db
|
|
|
|
wRegisteredItem:: db
|
2013-07-03 03:01:34 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPlayerState:: db
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2020-09-12 17:11:08 +00:00
|
|
|
wHallOfFameCount:: db
|
|
|
|
ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wTradeFlags:: flag_array NUM_NPC_TRADES
|
2016-01-12 17:46:18 +00:00
|
|
|
ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wMooMooBerries:: db
|
|
|
|
wUndergroundSwitchPositions:: db
|
|
|
|
wFarfetchdPosition:: db
|
2012-07-05 06:19:52 +00:00
|
|
|
|
2014-09-19 19:44:48 +00:00
|
|
|
ds 13
|
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
; map scene ids
|
2020-06-21 03:03:40 +00:00
|
|
|
wPokecenter2FSceneID:: db
|
|
|
|
wTradeCenterSceneID:: db
|
|
|
|
wColosseumSceneID:: db
|
|
|
|
wTimeCapsuleSceneID:: db
|
|
|
|
wPowerPlantSceneID:: db
|
|
|
|
wCeruleanGymSceneID:: db
|
|
|
|
wRoute25SceneID:: db
|
|
|
|
wTrainerHouseB1FSceneID:: db
|
|
|
|
wVictoryRoadGateSceneID:: db
|
|
|
|
wSaffronMagnetTrainStationSceneID:: db
|
|
|
|
wRoute16GateSceneID:: db
|
|
|
|
wRoute17Route18GateSceneID:: db
|
|
|
|
wIndigoPlateauPokecenter1FSceneID:: db
|
|
|
|
wWillsRoomSceneID:: db
|
|
|
|
wKogasRoomSceneID:: db
|
|
|
|
wBrunosRoomSceneID:: db
|
|
|
|
wKarensRoomSceneID:: db
|
|
|
|
wLancesRoomSceneID:: db
|
|
|
|
wHallOfFameSceneID:: db
|
|
|
|
wRoute27SceneID:: db
|
|
|
|
wNewBarkTownSceneID:: db
|
|
|
|
wElmsLabSceneID:: db
|
|
|
|
wPlayersHouse1FSceneID:: db
|
|
|
|
wRoute29SceneID:: db
|
|
|
|
wCherrygroveCitySceneID:: db
|
|
|
|
wMrPokemonsHouseSceneID:: db
|
|
|
|
wRoute32SceneID:: db
|
|
|
|
wRoute35NationalParkGateSceneID:: db
|
|
|
|
wRoute36SceneID:: db
|
|
|
|
wRoute36NationalParkGateSceneID:: db
|
|
|
|
wAzaleaTownSceneID:: db
|
|
|
|
wGoldenrodGymSceneID:: db
|
|
|
|
wGoldenrodMagnetTrainStationSceneID:: db
|
|
|
|
wGoldenrodPokecenter1FSceneID:: db
|
|
|
|
wOlivineCitySceneID:: db
|
|
|
|
wRoute34SceneID:: db
|
|
|
|
wRoute34IlexForestGateSceneID:: db
|
|
|
|
wEcruteakTinTowerEntranceSceneID:: db
|
|
|
|
wWiseTriosRoomSceneID:: db
|
|
|
|
wEcruteakPokecenter1FSceneID:: db
|
|
|
|
wEcruteakGymSceneID:: db
|
|
|
|
wMahoganyTownSceneID:: db
|
|
|
|
wRoute42SceneID:: db
|
|
|
|
wCianwoodCitySceneID:: db
|
|
|
|
wBattleTower1FSceneID:: db
|
|
|
|
wBattleTowerBattleRoomSceneID:: db
|
|
|
|
wBattleTowerElevatorSceneID:: db
|
|
|
|
wBattleTowerHallwaySceneID:: db
|
|
|
|
wBattleTowerOutsideSceneID:: db
|
|
|
|
wRoute43GateSceneID:: db
|
|
|
|
wMountMoonSceneID:: db
|
|
|
|
wSproutTower3FSceneID:: db
|
|
|
|
wTinTower1FSceneID:: db
|
|
|
|
wBurnedTower1FSceneID:: db
|
|
|
|
wBurnedTowerB1FSceneID:: db
|
|
|
|
wRadioTower5FSceneID:: db
|
|
|
|
wRuinsOfAlphOutsideSceneID:: db
|
|
|
|
wRuinsOfAlphResearchCenterSceneID:: db
|
|
|
|
wRuinsOfAlphHoOhChamberSceneID:: db
|
|
|
|
wRuinsOfAlphKabutoChamberSceneID:: db
|
|
|
|
wRuinsOfAlphOmanyteChamberSceneID:: db
|
|
|
|
wRuinsOfAlphAerodactylChamberSceneID:: db
|
|
|
|
wRuinsOfAlphInnerChamberSceneID:: db
|
|
|
|
wMahoganyMart1FSceneID:: db
|
|
|
|
wTeamRocketBaseB1FSceneID:: db
|
|
|
|
wTeamRocketBaseB2FSceneID:: db
|
|
|
|
wTeamRocketBaseB3FSceneID:: db
|
|
|
|
wGoldenrodUndergroundSwitchRoomEntrancesSceneID:: db
|
|
|
|
wSilverCaveRoom3SceneID:: db
|
|
|
|
wVictoryRoadSceneID:: db
|
|
|
|
wDragonsDenB1FSceneID:: db
|
|
|
|
wDragonShrineSceneID:: db
|
|
|
|
wOlivinePortSceneID:: db
|
|
|
|
wVermilionPortSceneID:: db
|
|
|
|
wFastShip1FSceneID:: db
|
|
|
|
wFastShipB1FSceneID:: db
|
|
|
|
wMountMoonSquareSceneID:: db
|
|
|
|
wMobileTradeRoomSceneID:: db
|
|
|
|
wMobileBattleRoomSceneID:: db
|
2014-03-04 03:46:04 +00:00
|
|
|
|
2014-09-19 19:44:48 +00:00
|
|
|
ds 49
|
2014-03-04 03:46:04 +00:00
|
|
|
|
2017-12-23 16:47:28 +00:00
|
|
|
; fight counts
|
2020-06-21 03:03:40 +00:00
|
|
|
wJackFightCount:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wBeverlyFightCount:: db ; unreferenced
|
2017-12-10 00:41:03 +00:00
|
|
|
wHueyFightCount:: db
|
|
|
|
wGavenFightCount:: db
|
|
|
|
wBethFightCount:: db
|
|
|
|
wJoseFightCount:: db
|
|
|
|
wReenaFightCount:: db
|
|
|
|
wJoeyFightCount:: db
|
|
|
|
wWadeFightCount:: db
|
|
|
|
wRalphFightCount:: db
|
|
|
|
wLizFightCount:: db
|
|
|
|
wAnthonyFightCount:: db
|
|
|
|
wToddFightCount:: db
|
|
|
|
wGinaFightCount:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wIrwinFightCount:: db ; unreferenced
|
2017-12-10 00:41:03 +00:00
|
|
|
wArnieFightCount:: db
|
|
|
|
wAlanFightCount:: db
|
|
|
|
wDanaFightCount:: db
|
|
|
|
wChadFightCount:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wDerekFightCount:: db ; unreferenced
|
2017-12-10 00:41:03 +00:00
|
|
|
wTullyFightCount:: db
|
|
|
|
wBrentFightCount:: db
|
|
|
|
wTiffanyFightCount:: db
|
|
|
|
wVanceFightCount:: db
|
|
|
|
wWiltonFightCount:: db
|
2020-10-26 19:45:57 +00:00
|
|
|
wKenjiFightCount:: db ; unreferenced
|
2017-12-10 00:41:03 +00:00
|
|
|
wParryFightCount:: db
|
|
|
|
wErinFightCount:: db
|
2017-12-23 16:47:28 +00:00
|
|
|
|
2015-02-10 23:37:24 +00:00
|
|
|
ds 100
|
2012-06-06 04:49:44 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wEventFlags:: flag_array NUM_EVENTS
|
2012-06-06 04:49:44 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurBox:: db
|
2014-04-12 19:45:19 +00:00
|
|
|
|
|
|
|
ds 2
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBoxNames:: ds BOX_NAME_LENGTH * NUM_BOXES
|
2012-04-19 04:18:36 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCelebiEvent::
|
2018-01-22 19:34:55 +00:00
|
|
|
; bit 2: forest is restless
|
|
|
|
db
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2015-02-10 22:16:31 +00:00
|
|
|
ds 1
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBikeFlags::
|
2016-01-04 13:43:55 +00:00
|
|
|
; bit 0: using strength
|
2013-06-27 04:34:49 +00:00
|
|
|
; bit 1: always on bike
|
|
|
|
; bit 2: downhill
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2018-02-04 02:22:06 +00:00
|
|
|
ds 1 ; cleared along with wBikeFlags by ResetBikeFlags
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wCurMapSceneScriptPointer:: dw
|
|
|
|
|
|
|
|
wCurCaller:: dw
|
|
|
|
wCurMapWarpCount:: db
|
|
|
|
wCurMapWarpsPointer:: dw
|
|
|
|
wCurMapCoordEventCount:: db
|
|
|
|
wCurMapCoordEventsPointer:: dw
|
|
|
|
wCurMapBGEventCount:: db
|
|
|
|
wCurMapBGEventsPointer:: dw
|
|
|
|
wCurMapObjectEventCount:: db
|
|
|
|
wCurMapObjectEventsPointer:: dw
|
|
|
|
wCurMapSceneScriptCount:: db
|
|
|
|
wCurMapSceneScriptsPointer:: dw
|
|
|
|
wCurMapCallbackCount:: db
|
|
|
|
wCurMapCallbacksPointer:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2016-01-12 17:46:18 +00:00
|
|
|
ds 2
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2013-05-29 22:56:09 +00:00
|
|
|
; Sprite id of each decoration
|
2020-06-21 03:03:40 +00:00
|
|
|
wDecoBed:: db
|
|
|
|
wDecoCarpet:: db
|
|
|
|
wDecoPlant:: db
|
|
|
|
wDecoPoster:: db
|
|
|
|
wDecoConsole:: db
|
|
|
|
wDecoLeftOrnament:: db
|
|
|
|
wDecoRightOrnament:: db
|
|
|
|
wDecoBigDoll:: db
|
2013-05-29 22:56:09 +00:00
|
|
|
|
2015-12-26 23:11:55 +00:00
|
|
|
; Items bought from Mom
|
2020-06-21 03:03:40 +00:00
|
|
|
wWhichMomItem:: db
|
|
|
|
wWhichMomItemSet:: db
|
|
|
|
wMomItemTriggerBalance:: ds 3
|
2015-12-26 23:11:55 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wDailyResetTimer:: dw
|
2018-08-06 17:43:54 +00:00
|
|
|
wDailyFlags1:: db
|
|
|
|
wDailyFlags2:: db
|
2017-12-28 12:15:46 +00:00
|
|
|
wSwarmFlags:: db
|
2016-01-12 17:46:18 +00:00
|
|
|
ds 2
|
2018-01-23 22:39:09 +00:00
|
|
|
wTimerEventStartDay:: db
|
2016-01-12 17:46:18 +00:00
|
|
|
ds 3
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wFruitTreeFlags:: flag_array NUM_FRUIT_TREES
|
2013-05-03 19:40:45 +00:00
|
|
|
|
2016-01-12 17:46:18 +00:00
|
|
|
ds 2
|
2015-02-08 08:03:32 +00:00
|
|
|
|
2020-12-23 21:29:30 +00:00
|
|
|
wLuckyNumberDayTimer:: dw
|
2015-10-10 21:03:04 +00:00
|
|
|
ds 2
|
2020-06-21 03:03:40 +00:00
|
|
|
wSpecialPhoneCallID:: db
|
2016-01-10 22:44:09 +00:00
|
|
|
ds 3
|
2020-06-21 03:03:40 +00:00
|
|
|
wBugContestStartTime:: ds 4 ; day, hour, min, sec
|
|
|
|
wUnusedTwoDayTimerOn:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wUnusedTwoDayTimer:: db
|
|
|
|
wUnusedTwoDayTimerStartDate:: db
|
2015-10-24 14:34:19 +00:00
|
|
|
ds 4
|
2017-12-10 00:41:03 +00:00
|
|
|
wMobileOrCable_LastSelection:: db
|
2015-02-08 08:03:32 +00:00
|
|
|
wdc41:: ds 1
|
|
|
|
wdc42:: ds 8
|
2017-12-10 00:41:03 +00:00
|
|
|
wBuenasPassword:: db
|
|
|
|
wBlueCardBalance:: db
|
2015-07-25 18:25:37 +00:00
|
|
|
wDailyRematchFlags:: ds 4
|
|
|
|
wDailyPhoneItemFlags:: ds 4
|
|
|
|
wDailyPhoneTimeOfDayFlags:: ds 4
|
2015-12-01 20:35:28 +00:00
|
|
|
wKenjiBreakTimer:: ds 2 ; Kenji
|
2020-06-21 03:03:40 +00:00
|
|
|
wYanmaMapGroup:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wYanmaMapNumber:: db
|
2016-05-05 19:07:37 +00:00
|
|
|
wPlayerMonSelection:: ds 3
|
2019-04-19 15:35:27 +00:00
|
|
|
wdc5f:: db
|
|
|
|
wdc60:: db
|
|
|
|
|
|
|
|
ds 18
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wStepCount:: db
|
|
|
|
wPoisonStepCount:: db
|
2015-02-08 08:03:32 +00:00
|
|
|
ds 2
|
2017-12-10 00:41:03 +00:00
|
|
|
wHappinessStepCount:: db
|
2016-01-06 21:59:56 +00:00
|
|
|
ds 1
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2015-11-08 18:27:26 +00:00
|
|
|
wParkBallsRemaining::
|
2020-06-21 03:03:40 +00:00
|
|
|
wSafariBallsRemaining:: db
|
|
|
|
wSafariTimeRemaining:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPhoneList:: ds CONTACT_LIST_SIZE + 1
|
2020-06-07 20:50:12 +00:00
|
|
|
|
|
|
|
ds 22
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLuckyNumberShowFlag:: db
|
2018-01-22 19:34:55 +00:00
|
|
|
ds 1
|
2020-06-21 03:03:40 +00:00
|
|
|
wLuckyIDNumber:: dw
|
2017-12-10 00:41:03 +00:00
|
|
|
|
|
|
|
wRepelEffect:: db ; If a Repel is in use, it contains the nr of steps it's still active
|
|
|
|
wBikeStep:: dw
|
|
|
|
wKurtApricornQuantity:: db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2015-08-20 04:14:15 +00:00
|
|
|
wPlayerDataEnd::
|
|
|
|
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurMapData::
|
2015-08-20 04:14:15 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wVisitedSpawns:: flag_array NUM_SPAWNS
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wDigWarpNumber:: db
|
|
|
|
wDigMapGroup:: db
|
|
|
|
wDigMapNumber:: db
|
2013-02-04 05:22:53 +00:00
|
|
|
|
2012-09-11 03:20:58 +00:00
|
|
|
; used on maps like second floor pokécenter, which are reused, so we know which
|
|
|
|
; map to return to
|
2020-06-21 03:03:40 +00:00
|
|
|
wBackupWarpNumber:: db
|
|
|
|
wBackupMapGroup:: db
|
|
|
|
wBackupMapNumber:: db
|
2012-09-11 03:20:58 +00:00
|
|
|
|
2015-02-08 08:03:32 +00:00
|
|
|
ds 3
|
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wLastSpawnMapGroup:: db
|
|
|
|
wLastSpawnMapNumber:: db
|
2012-07-05 04:13:23 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wWarpNumber:: db
|
|
|
|
wMapGroup:: db
|
|
|
|
wMapNumber:: db
|
|
|
|
wYCoord:: db
|
|
|
|
wXCoord:: db
|
2018-04-04 20:14:48 +00:00
|
|
|
wScreenSave:: ds SCREEN_META_WIDTH * SCREEN_META_HEIGHT
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2018-09-09 19:09:51 +00:00
|
|
|
wCurMapDataEnd::
|
2015-08-20 04:14:15 +00:00
|
|
|
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2017-06-17 23:14:55 +00:00
|
|
|
SECTION "Party", WRAMX
|
2012-04-19 04:18:36 +00:00
|
|
|
|
2015-08-20 04:14:15 +00:00
|
|
|
wPokemonData::
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPartyCount:: db
|
|
|
|
wPartySpecies:: ds PARTY_LENGTH
|
|
|
|
wPartyEnd:: db ; older code doesn't check wPartyCount
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2018-01-23 22:39:09 +00:00
|
|
|
wPartyMons::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wPartyMon1 - wPartyMon6
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wPartyMon{d:n}:: party_struct wPartyMon{d:n}
|
|
|
|
endr
|
2012-03-21 04:23:40 +00:00
|
|
|
|
2021-03-17 20:16:02 +00:00
|
|
|
wPartyMonOTs::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wPartyMon1OT - wPartyMon6OT
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wPartyMon{d:n}OT:: ds NAME_LENGTH
|
|
|
|
endr
|
2014-06-13 01:32:42 +00:00
|
|
|
|
2021-03-17 20:16:02 +00:00
|
|
|
wPartyMonNicknames::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wPartyMon1Nickname - wPartyMon6Nickname
|
|
|
|
for n, 1, PARTY_LENGTH + 1
|
|
|
|
wPartyMon{d:n}Nickname:: ds MON_NAME_LENGTH
|
|
|
|
endr
|
2018-01-23 22:39:09 +00:00
|
|
|
wPartyMonNicknamesEnd::
|
2012-10-09 06:40:36 +00:00
|
|
|
|
2014-09-19 19:44:48 +00:00
|
|
|
ds 22
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPokedexCaught:: flag_array NUM_POKEMON
|
2018-01-23 22:39:09 +00:00
|
|
|
wEndPokedexCaught::
|
2014-06-13 01:32:42 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wPokedexSeen:: flag_array NUM_POKEMON
|
2018-01-23 22:39:09 +00:00
|
|
|
wEndPokedexSeen::
|
2014-06-13 01:32:42 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wUnownDex:: ds NUM_UNOWN
|
|
|
|
wUnlockedUnowns:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wFirstUnownSeen:: db
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wDayCareMan::
|
2012-10-09 06:40:36 +00:00
|
|
|
; bit 7: active
|
2018-01-22 18:18:23 +00:00
|
|
|
; bit 6: egg ready
|
|
|
|
; bit 5: monsters are compatible
|
2017-12-10 18:37:15 +00:00
|
|
|
; bit 0: monster 1 in day-care
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2012-10-09 06:40:36 +00:00
|
|
|
|
2021-03-17 20:16:02 +00:00
|
|
|
wBreedMon1Nickname:: ds MON_NAME_LENGTH
|
|
|
|
wBreedMon1OT:: ds NAME_LENGTH
|
|
|
|
wBreedMon1:: box_struct wBreedMon1
|
2012-10-09 06:40:36 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wDayCareLady::
|
2012-10-09 06:40:36 +00:00
|
|
|
; bit 7: active
|
2017-12-10 18:37:15 +00:00
|
|
|
; bit 0: monster 2 in day-care
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2012-10-09 06:40:36 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wStepsToEgg::
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2020-06-21 03:03:40 +00:00
|
|
|
wBreedMotherOrNonDitto::
|
2012-10-09 06:40:36 +00:00
|
|
|
; z: yes
|
|
|
|
; nz: no
|
2017-12-10 00:41:03 +00:00
|
|
|
db
|
2012-10-09 06:40:36 +00:00
|
|
|
|
2021-03-17 20:16:02 +00:00
|
|
|
wBreedMon2Nickname:: ds MON_NAME_LENGTH
|
|
|
|
wBreedMon2OT:: ds NAME_LENGTH
|
|
|
|
wBreedMon2:: box_struct wBreedMon2
|
2012-10-09 06:40:36 +00:00
|
|
|
|
2021-03-17 20:16:02 +00:00
|
|
|
wEggMonNickname:: ds MON_NAME_LENGTH
|
|
|
|
wEggMonOT:: ds NAME_LENGTH
|
|
|
|
wEggMon:: box_struct wEggMon
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wBugContestSecondPartySpecies:: db
|
2020-06-21 03:03:40 +00:00
|
|
|
wContestMon:: party_struct wContestMon
|
2014-02-23 02:57:28 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wDunsparceMapGroup:: db
|
|
|
|
wDunsparceMapNumber:: db
|
|
|
|
wFishingSwarmFlag:: db
|
2014-02-23 02:57:28 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wRoamMon1:: roam_struct wRoamMon1
|
|
|
|
wRoamMon2:: roam_struct wRoamMon2
|
|
|
|
wRoamMon3:: roam_struct wRoamMon3
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2018-09-09 19:09:51 +00:00
|
|
|
wRoamMons_CurMapNumber:: db
|
|
|
|
wRoamMons_CurMapGroup:: db
|
2017-12-10 00:41:03 +00:00
|
|
|
wRoamMons_LastMapNumber:: db
|
|
|
|
wRoamMons_LastMapGroup:: db
|
2017-12-23 16:47:28 +00:00
|
|
|
|
2017-12-10 00:41:03 +00:00
|
|
|
wBestMagikarpLengthFeet:: db
|
|
|
|
wBestMagikarpLengthInches:: db
|
2015-10-13 15:37:10 +00:00
|
|
|
wMagikarpRecordHoldersName:: ds NAME_LENGTH
|
2017-12-23 16:47:28 +00:00
|
|
|
|
2015-08-20 04:14:15 +00:00
|
|
|
wPokemonDataEnd::
|
2015-10-13 18:29:34 +00:00
|
|
|
wGameDataEnd::
|
2015-08-20 04:14:15 +00:00
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2017-06-17 23:14:55 +00:00
|
|
|
SECTION "Pic Animations", WRAMX
|
2015-02-10 23:14:21 +00:00
|
|
|
|
2020-02-13 17:30:13 +00:00
|
|
|
wTempTilemap::
|
2015-09-09 23:27:07 +00:00
|
|
|
; 20x18 grid of 8x8 tiles
|
2020-06-13 22:48:26 +00:00
|
|
|
ds SCREEN_WIDTH * SCREEN_HEIGHT
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
; PokeAnim data
|
2018-07-23 04:37:48 +00:00
|
|
|
wPokeAnimStruct::
|
2017-12-09 19:22:58 +00:00
|
|
|
wPokeAnimSceneIndex:: db
|
|
|
|
wPokeAnimPointer:: dw
|
|
|
|
wPokeAnimSpecies:: db
|
|
|
|
wPokeAnimUnownLetter:: db
|
|
|
|
wPokeAnimSpeciesOrUnown:: db
|
|
|
|
wPokeAnimGraphicStartTile:: db
|
|
|
|
wPokeAnimCoord:: dw
|
|
|
|
wPokeAnimFrontpicHeight:: db
|
2017-12-28 16:05:42 +00:00
|
|
|
wPokeAnimIdleFlag:: db
|
2017-12-09 19:22:58 +00:00
|
|
|
wPokeAnimSpeed:: db
|
|
|
|
wPokeAnimPointerBank:: db
|
|
|
|
wPokeAnimPointerAddr:: dw
|
|
|
|
wPokeAnimFramesBank:: db
|
|
|
|
wPokeAnimFramesAddr:: dw
|
|
|
|
wPokeAnimBitmaskBank:: db
|
|
|
|
wPokeAnimBitmaskAddr:: dw
|
|
|
|
wPokeAnimFrame:: db
|
|
|
|
wPokeAnimJumptableIndex:: db
|
|
|
|
wPokeAnimRepeatTimer:: db
|
|
|
|
wPokeAnimCurBitmask:: db
|
|
|
|
wPokeAnimWaitCounter:: db
|
|
|
|
wPokeAnimCommand:: db
|
|
|
|
wPokeAnimParameter:: db
|
|
|
|
ds 1
|
|
|
|
wPokeAnimBitmaskCurCol:: db
|
|
|
|
wPokeAnimBitmaskCurRow:: db
|
|
|
|
wPokeAnimBitmaskCurBit:: db
|
2016-05-16 03:56:09 +00:00
|
|
|
wPokeAnimBitmaskBuffer:: ds 7
|
|
|
|
ds 2
|
2015-11-07 14:48:32 +00:00
|
|
|
wPokeAnimStructEnd::
|
2015-02-10 23:14:21 +00:00
|
|
|
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2017-12-27 03:57:19 +00:00
|
|
|
SECTION "Battle Tower RAM", WRAMX
|
2015-02-10 23:37:24 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
w3_d000:: ds 1
|
2015-12-26 16:31:56 +00:00
|
|
|
w3_d001:: ds 1
|
2020-06-13 22:48:26 +00:00
|
|
|
w3_d002:: ds 16
|
|
|
|
w3_d012:: ds $6e
|
2018-01-18 06:25:19 +00:00
|
|
|
w3_d080:: ds 1
|
|
|
|
w3_d081:: ds $f
|
2017-12-23 16:34:55 +00:00
|
|
|
w3_d090:: ds $70
|
|
|
|
|
|
|
|
w3_d100::
|
2018-01-23 22:39:09 +00:00
|
|
|
wBT_OTTrainer:: battle_tower_struct wBT_OT
|
2015-09-04 20:30:40 +00:00
|
|
|
ds $20
|
2020-06-21 03:03:40 +00:00
|
|
|
wBT_TrainerTextIndex:: db
|
2017-12-23 16:34:55 +00:00
|
|
|
ds 1
|
2015-11-24 20:18:44 +00:00
|
|
|
w3_d202:: battle_tower_struct w3_d202
|
|
|
|
w3_d2e2:: battle_tower_struct w3_d2e2
|
|
|
|
w3_d3c2:: battle_tower_struct w3_d3c2
|
|
|
|
w3_d4a2:: battle_tower_struct w3_d4a2
|
|
|
|
w3_d582:: battle_tower_struct w3_d582
|
|
|
|
w3_d662:: battle_tower_struct w3_d662
|
2017-12-23 16:34:55 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2015-11-24 20:18:44 +00:00
|
|
|
w3_d742:: battle_tower_struct w3_d742
|
2017-12-23 16:34:55 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-07-22 20:26:17 +00:00
|
|
|
ds $be
|
2017-12-23 16:34:55 +00:00
|
|
|
w3_d800:: ds BG_MAP_WIDTH * SCREEN_HEIGHT
|
2017-12-16 02:22:26 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-23 16:34:55 +00:00
|
|
|
ds $be
|
2020-06-21 03:03:40 +00:00
|
|
|
wBTChoiceOfLvlGroup:: db
|
2019-04-27 17:50:24 +00:00
|
|
|
ds $1
|
2020-06-21 03:03:40 +00:00
|
|
|
w3_d802:: ds 12
|
|
|
|
w3_d80e:: db
|
2019-04-27 17:50:24 +00:00
|
|
|
ds $1
|
2020-06-21 03:03:40 +00:00
|
|
|
w3_d810::
|
2019-04-27 17:50:24 +00:00
|
|
|
ds $59
|
2020-06-21 03:03:40 +00:00
|
|
|
w3_d869:: ds $17
|
|
|
|
w3_d880:: ds 1
|
|
|
|
w3_d881:: ds 8
|
|
|
|
w3_d889:: ds 1
|
|
|
|
w3_d88a:: ds 4
|
|
|
|
w3_d88e:: ds 1
|
|
|
|
w3_d88f:: ds 4
|
|
|
|
w3_d893:: ds 1
|
|
|
|
w3_d894:: ds 1
|
|
|
|
w3_d895:: ds 11
|
|
|
|
w3_d8a0:: ds 1
|
|
|
|
w3_d8a1:: ds 1
|
|
|
|
w3_d8a2:: ds 1
|
|
|
|
w3_d8a3:: ds 1
|
|
|
|
ENDU
|
2017-12-23 16:34:55 +00:00
|
|
|
|
|
|
|
ds $1c0
|
|
|
|
|
2016-01-04 13:43:55 +00:00
|
|
|
w3_dc00:: ds SCREEN_WIDTH * SCREEN_HEIGHT
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2016-01-04 13:43:55 +00:00
|
|
|
w3_dd68:: ds SCREEN_WIDTH * SCREEN_HEIGHT
|
2017-12-23 16:34:55 +00:00
|
|
|
|
2016-01-04 13:43:55 +00:00
|
|
|
ds $11c
|
2017-12-23 16:34:55 +00:00
|
|
|
|
2015-12-26 16:31:56 +00:00
|
|
|
w3_dfec:: ds $10
|
2015-11-25 15:16:29 +00:00
|
|
|
w3_dffc:: ds 4
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-27 17:50:24 +00:00
|
|
|
ds $98
|
|
|
|
w3_de00:: ds $200
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2015-02-10 23:37:24 +00:00
|
|
|
|
2019-10-20 22:27:34 +00:00
|
|
|
|
2019-04-27 17:50:24 +00:00
|
|
|
SECTION "GBC Video", WRAMX, ALIGN[8]
|
|
|
|
; LCD expects wLYOverrides to have an alignment of $100
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
; eight 4-color palettes each
|
2018-06-13 03:29:15 +00:00
|
|
|
wGBCPalettes:: ; used only for BANK(wGBCPalettes)
|
2020-06-21 03:03:40 +00:00
|
|
|
wBGPals1:: ds 8 palettes
|
|
|
|
wOBPals1:: ds 8 palettes
|
|
|
|
wBGPals2:: ds 8 palettes
|
|
|
|
wOBPals2:: ds 8 palettes
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLYOverrides:: ds SCREEN_HEIGHT_PX
|
|
|
|
wLYOverridesEnd::
|
2013-08-22 08:16:41 +00:00
|
|
|
|
2015-07-25 18:25:37 +00:00
|
|
|
ds 1
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2018-06-13 03:29:15 +00:00
|
|
|
wMagnetTrain:: ; used only for BANK(wMagnetTrain)
|
2017-12-09 19:22:58 +00:00
|
|
|
wMagnetTrainDirection:: db
|
|
|
|
wMagnetTrainInitPosition:: db
|
|
|
|
wMagnetTrainHoldPosition:: db
|
|
|
|
wMagnetTrainFinalPosition:: db
|
|
|
|
wMagnetTrainPlayerSpriteInitX:: db
|
|
|
|
|
2016-05-05 19:07:37 +00:00
|
|
|
ds 106
|
2013-12-08 21:22:35 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLYOverridesBackup:: ds SCREEN_HEIGHT_PX
|
2018-01-23 22:39:09 +00:00
|
|
|
wLYOverridesBackupEnd::
|
2013-12-08 21:22:35 +00:00
|
|
|
|
|
|
|
|
2017-06-17 23:14:55 +00:00
|
|
|
SECTION "Battle Animations", WRAMX
|
2014-09-19 19:44:48 +00:00
|
|
|
|
2020-10-30 19:39:08 +00:00
|
|
|
wBattleAnimTileDict::
|
|
|
|
; wBattleAnimTileDict pairs keys with values
|
|
|
|
; keys: ANIM_GFX_* indexes (taken from anim_*gfx arguments)
|
|
|
|
; values: vTiles0 offsets
|
|
|
|
ds NUM_BATTLEANIMTILEDICT_ENTRIES * 2
|
2013-12-18 04:32:46 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wActiveAnimObjects::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wAnimObject1 - wAnimObject10
|
|
|
|
for n, 1, NUM_ANIM_OBJECTS + 1
|
|
|
|
wAnimObject{d:n}:: battle_anim_struct wAnimObject{d:n}
|
|
|
|
endr
|
2018-01-23 22:39:09 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wActiveBGEffects::
|
2021-04-27 16:11:39 +00:00
|
|
|
; wBGEffect1 - wBGEffect5
|
|
|
|
for n, 1, NUM_BG_EFFECTS + 1
|
|
|
|
wBGEffect{d:n}:: battle_bg_effect wBGEffect{d:n}
|
|
|
|
endr
|
2013-12-09 21:20:19 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wLastAnimObjectIndex:: db
|
2013-12-08 21:22:35 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
wBattleAnimFlags:: db
|
|
|
|
wBattleAnimAddress:: dw
|
|
|
|
wBattleAnimDelay:: db
|
|
|
|
wBattleAnimParent:: dw
|
|
|
|
wBattleAnimLoops:: db
|
|
|
|
wBattleAnimVar:: db
|
|
|
|
wBattleAnimByte:: db
|
|
|
|
wBattleAnimOAMPointerLo:: db
|
2017-12-23 16:47:28 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2018-11-22 11:32:24 +00:00
|
|
|
wBattleObjectTempID:: db
|
|
|
|
wBattleObjectTempXCoord:: db
|
|
|
|
wBattleObjectTempYCoord:: db
|
2019-02-06 07:07:11 +00:00
|
|
|
wBattleObjectTempParam:: db
|
2018-11-22 11:32:24 +00:00
|
|
|
|
2020-11-09 20:05:14 +00:00
|
|
|
NEXTU
|
|
|
|
wBattleBGEffectTempID:: db
|
|
|
|
wBattleBGEffectTempJumptableIndex:: db
|
|
|
|
wBattleBGEffectTempTurn:: db
|
|
|
|
wBattleBGEffectTempParam:: db
|
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-23 16:47:28 +00:00
|
|
|
wBattleAnimTempOAMFlags:: db
|
2020-10-04 01:54:02 +00:00
|
|
|
wBattleAnimTempFixY:: db
|
2017-12-23 16:47:28 +00:00
|
|
|
wBattleAnimTempTileID:: db
|
|
|
|
wBattleAnimTempXCoord:: db
|
|
|
|
wBattleAnimTempYCoord:: db
|
|
|
|
wBattleAnimTempXOffset:: db
|
|
|
|
wBattleAnimTempYOffset:: db
|
2019-02-15 01:56:24 +00:00
|
|
|
wBattleAnimTempFrameOAMFlags:: db
|
2017-12-23 16:47:28 +00:00
|
|
|
wBattleAnimTempPalette:: db
|
2020-11-09 20:05:14 +00:00
|
|
|
|
|
|
|
NEXTU
|
|
|
|
wBattleAnimGFXTempTileID::
|
|
|
|
wBattleAnimGFXTempPicHeight:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
wBattleSineWaveTempProgress:: db
|
|
|
|
wBattleSineWaveTempOffset:: db
|
|
|
|
wBattleSineWaveTempAmplitude:: db
|
|
|
|
wBattleSineWaveTempTimer:: db
|
|
|
|
|
|
|
|
NEXTU
|
|
|
|
wBattlePicResizeTempBaseTileID:: db
|
|
|
|
wBattlePicResizeTempPointer:: dw
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2017-07-22 20:26:17 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2020-11-04 00:53:07 +00:00
|
|
|
ds 50
|
2015-11-09 21:41:09 +00:00
|
|
|
wBattleAnimEnd::
|
2017-12-23 16:47:28 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-23 16:47:28 +00:00
|
|
|
wSurfWaveBGEffect:: ds $40
|
|
|
|
wSurfWaveBGEffectEnd::
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2017-12-10 00:41:03 +00:00
|
|
|
|
2015-11-11 04:23:28 +00:00
|
|
|
|
2017-12-12 04:44:29 +00:00
|
|
|
SECTION "Mobile RAM", WRAMX
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2015-11-11 04:23:28 +00:00
|
|
|
w5_d800:: ds $200
|
|
|
|
w5_da00:: ds $200
|
|
|
|
w5_dc00:: ds $d
|
|
|
|
w5_dc0d:: ds 4
|
|
|
|
w5_dc11:: ds 9
|
2020-06-21 03:03:40 +00:00
|
|
|
w5_MobileOpponentBattleMessages:: ds $c
|
|
|
|
w5_MobileOpponentBattleStartMessage:: ds $c
|
|
|
|
w5_MobileOpponentBattleWinMessage:: ds $c
|
|
|
|
w5_MobileOpponentBattleLossMessage:: ds $c
|
2013-08-22 08:16:41 +00:00
|
|
|
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2017-12-12 04:44:29 +00:00
|
|
|
SECTION "Scratch RAM", WRAMX
|
2015-02-10 23:14:41 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
UNION
|
2020-02-13 17:30:13 +00:00
|
|
|
wScratchTilemap:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
|
|
|
|
wScratchAttrmap:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2017-12-09 19:22:58 +00:00
|
|
|
wDecompressScratch:: ds $80 tiles
|
|
|
|
wDecompressEnemyFrontpic:: ds $80 tiles
|
2019-04-27 17:50:24 +00:00
|
|
|
|
2020-06-21 03:03:40 +00:00
|
|
|
NEXTU
|
2019-04-27 17:50:24 +00:00
|
|
|
; unidentified uses
|
|
|
|
w6_d000:: ds $1000
|
2020-06-21 03:03:40 +00:00
|
|
|
ENDU
|
2015-02-10 23:14:41 +00:00
|
|
|
|
2015-10-18 00:49:34 +00:00
|
|
|
|
2017-12-12 04:44:29 +00:00
|
|
|
SECTION "Stack RAM", WRAMX
|
2017-12-09 19:22:58 +00:00
|
|
|
|
2015-12-15 23:59:49 +00:00
|
|
|
wWindowStack:: ds $1000 - 1
|
|
|
|
wWindowStackBottom:: ds 1
|
2017-12-09 19:22:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
INCLUDE "sram.asm"
|
2018-08-25 18:28:22 +00:00
|
|
|
|
|
|
|
INCLUDE "hram.asm"
|