File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -126,4 +126,4 @@ DEF NUM_PARTYMENUACTIONS EQU const_value
126
126
const NAME_FRIEND
127
127
const NAME_6 ; duplicate of NAME_MON
128
128
const NAME_7 ; duplicate of NAME_MON
129
- DEF NUM_NAME_TYPES EQU const_value
129
+ DEF NUM_NAMING_SCREEN_TYPES EQU const_value
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ DEF NAME_LENGTH_JAPANESE EQU 6
18
18
const ENEMY_OT_NAME ; 6
19
19
const TRAINER_NAME ; 7
20
20
const MOVE_DESC_NAME_BROKEN ; 8
21
+ DEF NUM_NAME_TYPES EQU const_value - 1
21
22
22
23
; see home/text.asm
23
24
DEF BORDER_WIDTH EQU 2
Original file line number Diff line number Diff line change @@ -61,27 +61,29 @@ NamingScreen:
61
61
62
62
.GetNamingScreenSetup:
63
63
ld a , [ wNamingScreenType ]
64
- maskbits NUM_NAME_TYPES
64
+ maskbits NUM_NAMING_SCREEN_TYPES
65
65
ld e , a
66
66
ld d , 0
67
- ld hl , .Jumptable
67
+ ld hl , NamingScreenJumptable
68
68
add hl , de
69
69
add hl , de
70
70
ld a , [ hli ]
71
71
ld h , [ hl ]
72
72
ld l , a
73
73
jp hl
74
74
75
- .Jumptable:
76
- ; entries correspond to NAME_* constants
75
+ NamingScreenJumptable:
76
+ ; entries correspond to NAME_* constants (see constants/menu_constants.asm)
77
+ table_width 2
77
78
dw .Pokemon
78
79
dw .Player
79
80
dw .Rival
80
81
dw .Mom
81
82
dw .Box
82
- dw .Tomodachi
83
+ dw .Fr iend
83
84
dw .Pokemon
84
85
dw .Pokemon
86
+ assert_table_length NUM_NAMING_SCREEN_TYPES
85
87
86
88
.Pokemon:
87
89
ld a , [ wCurPartySpecies ]
@@ -180,14 +182,14 @@ NamingScreen:
180
182
.BoxNameString:
181
183
db "BOX NAME?@"
182
184
183
- .Tomodachi :
185
+ .Fr iend :
184
186
hlcoord 3 , 2
185
- ld de , .oTomodachi_no_namae_sutoringu
187
+ ld de , .FriendsNameString
186
188
call PlaceString
187
189
call .StoreSpriteIconParams
188
190
ret
189
191
190
- .oTomodachi_no_namae_sutoringu
192
+ .FriendsNameString:
191
193
db "おともだち の なまえは?@"
192
194
193
195
.LoadSprite:
Original file line number Diff line number Diff line change 1
1
NamesPointers::
2
2
; entries correspond to GetName constants (see constants/text_constants.asm)
3
+ table_width 3
3
4
dba PokemonNames ; MON_NAME (not used; jumps to GetPokemonName)
4
5
dba MoveNames ; MOVE_NAME
5
6
dba NULL ; DUMMY_NAME
@@ -8,6 +9,7 @@ NamesPointers::
8
9
dbw 0 , wOTPartyMonOTs ; ENEMY_OT_NAME
9
10
dba TrainerClassNames ; TRAINER_NAME
10
11
dbw 4 , MoveDescriptions ; MOVE_DESC_NAME_BROKEN (wrong bank)
12
+ assert_table_length NUM_NAME_TYPES
11
13
12
14
GetName::
13
15
; Return name wCurSpecies from name list wNamedObjectType in wStringBuffer1.
You can’t perform that action at this time.
0 commit comments