You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Use NAME_LENGTH_JAPANESE more
This commit is contained in:
@@ -107,7 +107,7 @@ Function170139: ; 170139
|
|||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ld hl, PlayerName
|
ld hl, PlayerName
|
||||||
ld bc, 5 ; Japanese name length
|
ld bc, NAME_LENGTH_JAPANESE - 1
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld bc, PlayerID
|
ld bc, PlayerID
|
||||||
ld de, PlayerGender
|
ld de, PlayerGender
|
||||||
@@ -159,7 +159,7 @@ Function170139: ; 170139
|
|||||||
ld a, $5
|
ld a, $5
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld hl, $a894
|
ld hl, $a894
|
||||||
ld bc, 6
|
ld bc, NAME_LENGTH_JAPANESE
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, wMisc
|
ld hl, wMisc
|
||||||
ld de, $a948
|
ld de, $a948
|
||||||
@@ -879,7 +879,7 @@ Function1704e1: ; 1704e1
|
|||||||
ld de, wcd49
|
ld de, wcd49
|
||||||
push bc
|
push bc
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ld de, 6
|
ld de, NAME_LENGTH_JAPANESE
|
||||||
add hl, de
|
add hl, de
|
||||||
pop bc
|
pop bc
|
||||||
pop af
|
pop af
|
||||||
@@ -1362,7 +1362,7 @@ BattleTowerAction_EggTicket: ; 17093c (5c:493c) BattleTowerAction $0e
|
|||||||
jr nz, .not_egg
|
jr nz, .not_egg
|
||||||
push hl
|
push hl
|
||||||
ld hl, PartyMonOT
|
ld hl, PartyMonOT
|
||||||
ld de, $6 ; NAME_LENGTH
|
ld de, NAME_LENGTH_JAPANESE
|
||||||
ld a, b
|
ld a, b
|
||||||
and a
|
and a
|
||||||
jr z, .skip
|
jr z, .skip
|
||||||
@@ -1372,7 +1372,7 @@ BattleTowerAction_EggTicket: ; 17093c (5c:493c) BattleTowerAction $0e
|
|||||||
jr nz, .loop2
|
jr nz, .loop2
|
||||||
.skip
|
.skip
|
||||||
ld de, String_1709a4
|
ld de, String_1709a4
|
||||||
ld a, $6 ; NAME_LENGTH
|
ld a, NAME_LENGTH_JAPANESE
|
||||||
.compare_loop
|
.compare_loop
|
||||||
push af
|
push af
|
||||||
ld a, [de]
|
ld a, [de]
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ CopyMobileEZChatToC608: ; 11c156
|
|||||||
sla c
|
sla c
|
||||||
rl b
|
rl b
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld bc, 5 ; length of a string
|
ld bc, NAME_LENGTH_JAPANESE - 1
|
||||||
.copy_string
|
.copy_string
|
||||||
ld de, $c608
|
ld de, $c608
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
@@ -3236,7 +3236,7 @@ EZChat_GetCategoryWordsByKana: ; 11d4aa
|
|||||||
push hl
|
push hl
|
||||||
|
|
||||||
; skip to the attributes
|
; skip to the attributes
|
||||||
ld hl, 5 ; length of a string
|
ld hl, NAME_LENGTH_JAPANESE - 1
|
||||||
add hl, de
|
add hl, de
|
||||||
|
|
||||||
; get the number of words in the category
|
; get the number of words in the category
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ Function89331: ; 89331
|
|||||||
; Sets carry if it does not find a nonspace character.
|
; Sets carry if it does not find a nonspace character.
|
||||||
; Returns the location of the following character in hl.
|
; Returns the location of the following character in hl.
|
||||||
push bc
|
push bc
|
||||||
ld c, 5
|
ld c, NAME_LENGTH_JAPANESE - 1
|
||||||
.loop
|
.loop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
cp "@"
|
cp "@"
|
||||||
@@ -410,12 +410,12 @@ Function89346: ; 89346 (22:5346)
|
|||||||
jr _incave
|
jr _incave
|
||||||
|
|
||||||
Function8934a: ; 8934a
|
Function8934a: ; 8934a
|
||||||
ld hl, 6
|
ld hl, NAME_LENGTH_JAPANESE
|
||||||
add hl, bc
|
add hl, bc
|
||||||
_incave:
|
_incave:
|
||||||
; Scans up to 5 characters starting at hl, looking for a nonspace character up to the next terminator. Sets carry if it does not find a nonspace character. Returns the location of the following character in hl.
|
; Scans up to 5 characters starting at hl, looking for a nonspace character up to the next terminator. Sets carry if it does not find a nonspace character. Returns the location of the following character in hl.
|
||||||
push bc
|
push bc
|
||||||
ld c, 5
|
ld c, NAME_LENGTH_JAPANESE - 1
|
||||||
.loop
|
.loop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
cp "@"
|
cp "@"
|
||||||
@@ -448,7 +448,7 @@ Function89363: ; 89363
|
|||||||
|
|
||||||
._incave
|
._incave
|
||||||
push de
|
push de
|
||||||
ld e, 6
|
ld e, NAME_LENGTH_JAPANESE
|
||||||
.loop
|
.loop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
cp -1
|
cp -1
|
||||||
@@ -2394,7 +2394,7 @@ Function89e9a: ; 89e9a (22:5e9a)
|
|||||||
ld a, $5
|
ld a, $5
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ld hl, Palette_89eb1
|
ld hl, Palette_89eb1
|
||||||
ld de, UnknBGPals + 5 palettes
|
ld de, UnknBGPals palette 5
|
||||||
ld bc, 1 palettes
|
ld bc, 1 palettes
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
pop af
|
pop af
|
||||||
|
|||||||
@@ -2679,7 +2679,7 @@ LoadSelectedPartiesForColosseum: ; 1010f2
|
|||||||
.CopyThreeSpecies: ; 101145
|
.CopyThreeSpecies: ; 101145
|
||||||
; Load the 3 choices to the buffer
|
; Load the 3 choices to the buffer
|
||||||
push de
|
push de
|
||||||
ld bc, StringBuffer2 + 6
|
ld bc, StringBuffer2 + NAME_LENGTH_JAPANESE
|
||||||
xor a
|
xor a
|
||||||
.party_loop
|
.party_loop
|
||||||
push af
|
push af
|
||||||
@@ -2695,7 +2695,7 @@ LoadSelectedPartiesForColosseum: ; 1010f2
|
|||||||
ld a, 3
|
ld a, 3
|
||||||
ld [de], a
|
ld [de], a
|
||||||
inc de
|
inc de
|
||||||
ld hl, StringBuffer2 + 6
|
ld hl, StringBuffer2 + NAME_LENGTH_JAPANESE
|
||||||
ld bc, 3
|
ld bc, 3
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, $ff
|
ld a, $ff
|
||||||
|
|||||||
@@ -947,7 +947,7 @@ MobileTradeAnim_GiveTrademon1: ; 108763
|
|||||||
ld de, SFX_GIVE_TRADEMON
|
ld de, SFX_GIVE_TRADEMON
|
||||||
call PlaySFX
|
call PlaySFX
|
||||||
ld c, 40
|
ld c, 40
|
||||||
ld hl, BGPals + 6 palettes
|
ld hl, BGPals palette 6
|
||||||
call Function1082f0
|
call Function1082f0
|
||||||
call Function108af4
|
call Function108af4
|
||||||
.loop
|
.loop
|
||||||
@@ -1179,7 +1179,7 @@ MobileTradeAnim_GetTrademon2: ; 108894
|
|||||||
|
|
||||||
MobileTradeAnim_GetTrademon3: ; 10890a
|
MobileTradeAnim_GetTrademon3: ; 10890a
|
||||||
ld c, 40
|
ld c, 40
|
||||||
ld hl, BGPals + 6 palettes
|
ld hl, BGPals palette 6
|
||||||
call Function1082f0
|
call Function1082f0
|
||||||
call Function108af4
|
call Function108af4
|
||||||
call GetMobileTradeAnimByte
|
call GetMobileTradeAnimByte
|
||||||
@@ -1718,7 +1718,7 @@ Function108c80: ; 108c80
|
|||||||
; 108c9b
|
; 108c9b
|
||||||
|
|
||||||
DebugMobileTrade: ; 108c9b
|
DebugMobileTrade: ; 108c9b
|
||||||
; localization error: NAME_LENGTH (11) should be 6 here
|
; localization error: NAME_LENGTH (11) should be NAME_LENGTH_JAPANESE (6) here
|
||||||
|
|
||||||
ld hl, .DebugTradeData
|
ld hl, .DebugTradeData
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
|
|||||||
@@ -1895,7 +1895,7 @@ Function114b55: ; 114b55
|
|||||||
.asm_114b8c
|
.asm_114b8c
|
||||||
pop hl
|
pop hl
|
||||||
xor a
|
xor a
|
||||||
rept 6
|
rept NAME_LENGTH_JAPANESE
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
endr
|
endr
|
||||||
jr .asm_114b82
|
jr .asm_114b82
|
||||||
|
|||||||
@@ -523,12 +523,12 @@ Function116294: ; 116294
|
|||||||
push af
|
push af
|
||||||
ld a, $5
|
ld a, $5
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ld hl, UnknBGPals + 8 * 6
|
ld hl, UnknBGPals palette 6
|
||||||
ld de, $c320
|
ld de, $c320
|
||||||
ld bc, 2 palettes
|
ld bc, 2 palettes
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, Palette_11734e
|
ld hl, Palette_11734e
|
||||||
ld de, UnknBGPals + 8 * 7
|
ld de, UnknBGPals palette 7
|
||||||
ld bc, 1 palettes
|
ld bc, 1 palettes
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call SetPalettes
|
call SetPalettes
|
||||||
|
|||||||
@@ -7103,7 +7103,7 @@ Mobile46_RunJumptable: ; 11b45c
|
|||||||
Function11b483: ; 11b483
|
Function11b483: ; 11b483
|
||||||
call .InitRAM
|
call .InitRAM
|
||||||
ld hl, PlayerName
|
ld hl, PlayerName
|
||||||
ld a, $5 ; Japanese Name Length
|
ld a, NAME_LENGTH_JAPANESE - 1
|
||||||
.loop1
|
.loop1
|
||||||
push af
|
push af
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
|
|||||||
@@ -44,13 +44,13 @@ Function17005a: ; 17005a
|
|||||||
ld [wOTTrademonSpecies], a
|
ld [wOTTrademonSpecies], a
|
||||||
ld hl, $a827
|
ld hl, $a827
|
||||||
ld de, wOTTrademonSenderName
|
ld de, wOTTrademonSenderName
|
||||||
ld bc, 5 ; Japanese Name Length
|
ld bc, NAME_LENGTH_JAPANESE - 1
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, "@"
|
ld a, "@"
|
||||||
ld [de], a
|
ld [de], a
|
||||||
ld hl, $a85c
|
ld hl, $a85c
|
||||||
ld de, wOTTrademonOTName
|
ld de, wOTTrademonOTName
|
||||||
ld bc, 5 ; Japanese Name Length
|
ld bc, NAME_LENGTH_JAPANESE - 1
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, "@"
|
ld a, "@"
|
||||||
ld [de], a
|
ld [de], a
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ Function4a0c2: ; 4a0c2 (12:60c2)
|
|||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld hl, sPlayerData + PlayerName - wPlayerData
|
ld hl, sPlayerData + PlayerName - wPlayerData
|
||||||
ld de, PlayerName
|
ld de, PlayerName
|
||||||
ld bc, 6 ; japanese name length
|
ld bc, NAME_LENGTH_JAPANESE
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
callba _LoadData
|
callba _LoadData
|
||||||
|
|||||||
Reference in New Issue
Block a user