diff options
Diffstat (limited to 'src/constants')
-rw-r--r-- | src/constants/gfx_constants.asm | 2 | ||||
-rw-r--r-- | src/constants/menu_constants.asm | 7 | ||||
-rw-r--r-- | src/constants/npc_constants.asm | 30 | ||||
-rw-r--r-- | src/constants/script_constants.asm | 5 |
4 files changed, 34 insertions, 10 deletions
diff --git a/src/constants/gfx_constants.asm b/src/constants/gfx_constants.asm index 6ec2e0b..a32e255 100644 --- a/src/constants/gfx_constants.asm +++ b/src/constants/gfx_constants.asm @@ -13,6 +13,8 @@ palettes EQUS "* CGB_PAL_SIZE" NUM_BACKGROUND_PALETTES EQU 8 NUM_OBJECT_PALETTES EQU 8 +PALRGB_WHITE EQU (31 << 10 | 31 << 5 | 31) + ; tile size TILE_SIZE EQU 16 ; bytes tiles EQUS "* TILE_SIZE" diff --git a/src/constants/menu_constants.asm b/src/constants/menu_constants.asm index 86df8bf..007a354 100644 --- a/src/constants/menu_constants.asm +++ b/src/constants/menu_constants.asm @@ -46,3 +46,10 @@ NUM_CARDS_PROMOTIONAL EQU 20 const_def
const VENUSAUR_OWNED_PHANTOM_F ; $0
const MEW_OWNED_PHANTOM_F ; $1
+
+; wStartMenuChoice enums
+ const_def
+ const START_MENU_CARD_POP ; 0
+ const START_MENU_CONTINUE_FROM_DIARY ; 1
+ const START_MENU_NEW_GAME ; 2
+ const START_MENU_CONTINUE_DUEL ; 3
diff --git a/src/constants/npc_constants.asm b/src/constants/npc_constants.asm index 4a64993..1aac946 100644 --- a/src/constants/npc_constants.asm +++ b/src/constants/npc_constants.asm @@ -7,12 +7,12 @@ LOADED_NPC_MAX EQU $08 const LOADED_NPC_COORD_X const LOADED_NPC_COORD_Y const LOADED_NPC_DIRECTION - const LOADED_NPC_FIELD_05 - const LOADED_NPC_FIELD_06 - const LOADED_NPC_FIELD_07 - const LOADED_NPC_FIELD_08 - const LOADED_NPC_FIELD_09 - const LOADED_NPC_FIELD_0A + const LOADED_NPC_FLAGS + const LOADED_NPC_ANIM + const LOADED_NPC_UNKNOWN + const LOADED_NPC_MOVEMENT_STEP + const LOADED_NPC_MOVEMENT_PTR +const_value = const_value+1 const LOADED_NPC_FIELD_0B LOADED_NPC_LENGTH EQU const_value @@ -20,9 +20,9 @@ LOADED_NPC_LENGTH EQU const_value const_def const NPC_DATA_ID const NPC_DATA_SPRITE_ID - const NPC_DATA_FIELD_02 ; 02-04 Seem to relate to sprites - const NPC_DATA_FIELD_03 - const NPC_DATA_FIELD_04 + const NPC_DATA_ANIM + const NPC_DATA_ANIM_CGB + const NPC_DATA_FLAGS const NPC_DATA_SCRIPT_PTR const_value = const_value+1 const NPC_DATA_NAME_TEXT @@ -191,4 +191,14 @@ NPC_DATA_LENGTH EQU const_value const NPC_MURRAY2 ; $70 const NPC_RONALD2 ; $71 const NPC_RONALD3 ; $72 - const NPC_73 ; $73 (unused) + const NPC_PLAYER_CREDITS ; $73 + +; flags in LOADED_NPC_FLAGS + const_def 4 + const NPC_FLAG_DIRECTIONLESS_F ; $4 + const NPC_FLAG_MOVING_F ; $5 + const NPC_FLAG_UNKNOWN_F ; $6 + +NPC_FLAG_DIRECTIONLESS EQU 1 << NPC_FLAG_DIRECTIONLESS_F +NPC_FLAG_MOVING EQU 1 << NPC_FLAG_MOVING_F +NPC_FLAG_UNKNOWN EQU 1 << NPC_FLAG_UNKNOWN_F diff --git a/src/constants/script_constants.asm b/src/constants/script_constants.asm index d7ae7d6..3a44694 100644 --- a/src/constants/script_constants.asm +++ b/src/constants/script_constants.asm @@ -276,6 +276,7 @@ EAST EQU $01 SOUTH EQU $02 WEST EQU $03 NO_MOVE EQU %10000000 ; For rotations without movement +DIRECTION_MASK EQU $ff ^ NO_MOVE VARIABLE_CARD EQU 0 ; use the card located in wCardReceived instead of using the script's argument @@ -300,3 +301,7 @@ SCIENCE_MEDAL EQU 1 << SCIENCE_MEDAL_F GRASS_MEDAL EQU 1 << GRASS_MEDAL_F NUM_MEDALS EQU 8 + +; total number of packs that are obtained through the PC +NUM_PC_PACKS EQU 15 +PACK_OPENED EQU %10000000 |