summaryrefslogtreecommitdiff
path: root/constants.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2012-02-06 13:57:57 -0800
committerYamaArashi <shadow962@live.com>2012-02-06 13:57:57 -0800
commit53a9d6b3bd9d90c41e2d66473cf5423cdcfbb6b9 (patch)
tree27cb74028007ddbb29031a18cb20dcd701c07d86 /constants.asm
parent911a9a8844d2d3ab0679320cea66e90193e5ff04 (diff)
added some constants
hg-commit-id: 66878ceb09e7
Diffstat (limited to 'constants.asm')
-rw-r--r--constants.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/constants.asm b/constants.asm
index f334ca26..60d0f669 100644
--- a/constants.asm
+++ b/constants.asm
@@ -98,6 +98,8 @@ W_TOPMENUITEMX EQU $CC25
; the id of the currently selected menu item
; the top item has id 0, the one below that has id 1, etc.
+; note that the "top item" means the top item currently visible on the screen
+; add this value to [W_LISTSCROLLOFFSET] to get the item's position within the list
W_CURMENUITEMID EQU $CC26
; the tile that was behind the menu cursor's current location
@@ -118,6 +120,10 @@ W_PLAYERMONNUMBER EQU $CC2F
; the address of the menu cursor's current location within C3A0-C507
W_MENUCURSORLOCATION EQU $CC30 ; 2 bytes
+; offset of the current top menu item from the beginning of the list
+; keeps track of what section of the list is on screen
+W_LISTSCROLLOFFSET EQU $CC36
+
; set to 1 if you can go from the bottom to the top or top to bottom of a menu
; set to 0 if you can't go past the top or bottom of the menu
W_MENUWRAPPINGENABLED EQU $CC4A
@@ -330,6 +336,10 @@ W_PLAYERNAME EQU $D158 ; 11 characters, including null
W_NUMINPARTY EQU $D163
+W_OWNEDPOKEMON EQU $D2F7 ; bit field, 19 bytes
+
+W_SEENPOKEMON EQU $D30A ; bit field, 19 bytes
+
;number of items in bag
W_NUMBAGITEMS EQU $D31D
; BAGITEM01 is an item id