summaryrefslogtreecommitdiff
path: root/src/wram.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2021-06-12 17:55:56 -0500
committerdannye <33dannye@gmail.com>2021-06-12 17:55:56 -0500
commitc533527ff02ac86a33d6e98399e571db1112bc41 (patch)
tree29d3888dc54df1f6dea213ad8d249e625d010d99 /src/wram.asm
parent55f51e98b419a926861a326cfee77eaabca77695 (diff)
Add sprite animation constants
and rename more misc wram labels
Diffstat (limited to 'src/wram.asm')
-rw-r--r--src/wram.asm56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/wram.asm b/src/wram.asm
index 49e3844..292e473 100644
--- a/src/wram.asm
+++ b/src/wram.asm
@@ -1306,7 +1306,7 @@ wDefaultYesOrNo:: ; cd9a
ds $1
; used in _CopyCardNameAndLevel to keep track of the remaining space to copy the text
-wcd9b:: ; cd9b
+wCardNameLength:: ; cd9b
ds $1
; stores the total number of coins to flip
@@ -1489,7 +1489,7 @@ wAIExecuteProcessedAttack:: ; cdd9
wcdda:: ; cdda
ds $1
-wcddb:: ; cddb
+wAITriedAttack:: ; cddb
ds $1
wcddc:: ; cddc
@@ -1598,7 +1598,7 @@ wAITrainerCardToPlay:: ; ce16
wce17:: ; ce17
ds $1
-wce18:: ; ce18
+wAITrainerCardPhase:: ; ce18
ds $1
; parameters output by AI Trainer card logic routines
@@ -1635,7 +1635,7 @@ wCurrentAIFlags:: ; ce21
; $b is the bank where the functions associated to card or effect commands are.
; Its only purpose seems to be store this value to be read by TryExecuteEffectCommandFunction.
; possibly used in other contexts too
-wce22:: ; ce22
+wEffectFunctionsBank:: ; ce22
ds $1
; LoadCardGfx loads the card's palette here
@@ -2089,7 +2089,7 @@ wced6:: ; ced6
wced7:: ; ced7
ds $1
-wced8:: ; ced8
+wCardListVisibleOffsetBackup:: ; ced8
ds $1
; stores how many different cards there are in a deck
@@ -2102,8 +2102,6 @@ wFilteredCardList:: ; ceda
; stores AI temporary hand card list
wHandTempList:: ; ceda
-
-wceda:: ; ceda
ds DECK_SIZE
; terminator for wceda
@@ -2202,7 +2200,7 @@ wOwnedPhantomCardFlags:: ; cfe2
wPlaysSfx:: ; cfe3
ds $1
-wcfe4:: ; cfe4
+wSelectedPrinterMenuItem:: ; cfe4
ds $1
; collection index of the first owned card
@@ -2232,7 +2230,7 @@ wNamingScreenQuestionPointer:: ; d002
wNamingScreenBufferMaxLength:: ; d004
ds $1
-wd005:: ; d005
+wNamingScreenNumColumns:: ; d005
ds $1
wNamingScreenCursorX:: ; d006
@@ -2342,13 +2340,18 @@ wTempPlayerDirection:: ; d0be
wOverworldMode:: ; d0bf
ds $1
-wd0c0:: ; d0c0
+wOverworldModeBackup:: ; d0c0
ds $1
-wd0c1:: ; d0c1
+; overworld npc flag options
+; bit 0; auto-close textbox when finished talking to npc
+; bit 1; restore npc facing direction when finished talking to npc
+; bit 7; hide all npc sprites (for screens like pause menu, opening boosters, entering deck machine, etc.)
+wOverworldNPCFlags:: ; d0c1
ds $1
-wd0c2:: ; d0c2
+; only used with GAME_EVENT_DUEL, GAME_EVENT_BATTLE_CENTER, and GAME_EVENT_GIFT_CENTER
+wActiveGameEvent:: ; d0c2
ds $1
; stores the player's result in a duel (0: win, 1: loss, 2: ???, -1: transmission error?)
@@ -2372,28 +2375,25 @@ wCurrentNPCNameTx:: ; d0c8
wDefaultObjectText:: ; d0ca
ds $2
-wd0cc:: ; d0cc
+wObjectPalettesCGBBackup:: ; d0cc
ds 8 palettes
-wd10c:: ; d10c
+wOBP0Backup:: ; d10c
ds $1
-wd10d:: ; d10d
+wOBP1Backup:: ; d10d
ds $1
wd10e:: ; d10e
ds $1
-wd10f:: ; d10f
- ds $1
-
-wd110:: ; d110
- ds $1
+wReloadOverworldCallbackPtr:: ; d10f
+ ds $2
wDefaultSong:: ; d111
ds $1
-wd112:: ; d112
+wSongOverride:: ; d112
ds $1
wMatchStartTheme:: ; d113
@@ -2402,10 +2402,10 @@ wMatchStartTheme:: ; d113
wMedalScreenYOffset:: ; d114
ds $1
-wd115:: ; d115
+wWhichMedal:: ; d115
ds $1
-wd116:: ; d116
+wMedalDisplayTimer:: ; d116
ds $1
; if FALSE, first booster being given
@@ -2454,7 +2454,7 @@ wBGMapHeight:: ; d130
wCurTilemap:: ; d131
ds $1
-wd132:: ; d132
+wCurMapSGBPals:: ; d132
ds $1
UNION
@@ -2526,13 +2526,13 @@ wDecompressionBuffer:: ; d23e
ENDU
-wd28e:: ; d28e
+wDecompressionRowWidth:: ; d28e
ds $1
-wd28f:: ; d28f
+wCurMapInitialPalette:: ; d28f
ds $1
-wd290:: ; d290
+wCurMapPalette:: ; d290
ds $1
wd291:: ; d291
@@ -2628,7 +2628,7 @@ wPlayerCurrentlyMoving:: ; d335
wPlayerSpriteIndex:: ; d336
ds $1
-wd337:: ; d337
+wPlayerSpriteBaseAnimation:: ; d337
ds $1
wd338:: ; d338