clean up GetName/NamesPointers

This commit is contained in:
Remy Oukaour 2018-01-19 00:29:05 -05:00
parent 25048bd12d
commit 9576740b70
3 changed files with 19 additions and 18 deletions

View File

@ -9,14 +9,15 @@ TRAINER_CLASS_NAME_LENGTH EQU 13
NAME_LENGTH_JAPANESE EQU 6 NAME_LENGTH_JAPANESE EQU 6
; GetName types (see home/names.asm) ; GetName types (see home/names.asm)
PKMN_NAME EQU 1 const_value set 1
MOVE_NAME EQU 2 const PKMN_NAME ; 1
; dummied out EQU 3 const MOVE_NAME ; 2
ITEM_NAME EQU 4 const DUMMY_NAME ; 3
PARTY_OT_NAME EQU 5 const ITEM_NAME ; 4
ENEMY_OT_NAME EQU 6 const PARTY_OT_NAME ; 5
TRAINER_NAME EQU 7 const ENEMY_OT_NAME ; 6
; broken ptr EQU 8 const TRAINER_NAME ; 7
const BROKEN_NAME ; 8
; see home/text.asm ; see home/text.asm
BORDER_WIDTH EQU 2 BORDER_WIDTH EQU 2

View File

@ -1705,7 +1705,7 @@ TextJump_YouCantUseItInABattle: ; 0x10b11
db "@" db "@"
; 0x10b16 ; 0x10b16
PackMenuGFX:: PackMenuGFX:
INCBIN "gfx/pack/pack_menu.2bpp" INCBIN "gfx/pack/pack_menu.2bpp"
PackGFX: PackGFX:
INCBIN "gfx/pack/pack.2bpp" INCBIN "gfx/pack/pack.2bpp"

View File

@ -1,13 +1,13 @@
NamesPointers:: ; 33ab NamesPointers:: ; 33ab
; entries correspond to GetName constants (see constants/misc_constants.asm) ; entries correspond to GetName constants (see constants/text_constants.asm)
dba PokemonNames dba PokemonNames ; PKMN_NAME (not used; jumps to GetPokemonName)
dba MoveNames dba MoveNames ; MOVE_NAME
dbw 0, 0 dbw 0, NULL ; DUMMY_NAME
dba ItemNames dba ItemNames ; ITEM_NAME
dbw 0, PartyMonOT dbw 0, PartyMonOT ; PARTY_OT_NAME
dbw 0, OTPartyMonOT dbw 0, OTPartyMonOT ; ENEMY_OT_NAME
dba TrainerClassNames dba TrainerClassNames ; TRAINER_NAME
dbw BANK(PackMenuGFX), PackMenuGFX + 60 dbw $4, $4b52 ; BROKEN_NAME (within PackMenuGFX)
; 33c3 ; 33c3
GetName:: ; 33c3 GetName:: ; 33c3