You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
More splitting of main.asm; remove unneeded rept 2
This commit is contained in:
@@ -110,9 +110,8 @@ PlacePartyNicknames: ; 5009b
|
||||
jr nz, .loop
|
||||
|
||||
.end
|
||||
rept 2
|
||||
dec hl
|
||||
endr
|
||||
dec hl
|
||||
ld de, .CANCEL
|
||||
call PlaceString
|
||||
ret
|
||||
@@ -219,9 +218,8 @@ PlacePartyMenuHPDigits: ; 50138
|
||||
pop de
|
||||
ld a, "/"
|
||||
ld [hli], a
|
||||
rept 2
|
||||
inc de
|
||||
endr
|
||||
inc de
|
||||
lb bc, 2, 3
|
||||
call PrintNum
|
||||
|
||||
@@ -390,9 +388,8 @@ PlacePartyMonEvoStoneCompatibility: ; 5022f
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, EvosAttacksPointers
|
||||
rept 2
|
||||
add hl, de
|
||||
endr
|
||||
add hl, de
|
||||
call .DetermineCompatibility
|
||||
pop hl
|
||||
call PlaceString
|
||||
@@ -426,19 +423,16 @@ endr
|
||||
ld a, [hli]
|
||||
and a
|
||||
jr z, .nope
|
||||
rept 2
|
||||
inc hl
|
||||
endr
|
||||
inc hl
|
||||
cp EVOLVE_ITEM
|
||||
jr nz, .loop2
|
||||
rept 2
|
||||
dec hl
|
||||
endr
|
||||
dec hl
|
||||
ld a, [CurItem]
|
||||
cp [hl]
|
||||
rept 2
|
||||
inc hl
|
||||
endr
|
||||
inc hl
|
||||
jr nz, .loop2
|
||||
ld de, .string_able
|
||||
ret
|
||||
@@ -613,9 +607,8 @@ GetPartyMenuTilemapPointers: ; 50396
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Pointers
|
||||
rept 2
|
||||
add hl, de
|
||||
endr
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
@@ -794,9 +787,8 @@ PrintPartyMenuText: ; 5049a
|
||||
ld hl, PartyMenuStrings
|
||||
ld e, a
|
||||
ld d, $0
|
||||
rept 2
|
||||
add hl, de
|
||||
endr
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld d, [hl]
|
||||
ld e, a
|
||||
@@ -932,9 +924,8 @@ PrintPartyMenuActionText: ; 50566
|
||||
.PrintText: ; 505c1
|
||||
ld e, a
|
||||
ld d, 0
|
||||
rept 2
|
||||
add hl, de
|
||||
endr
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
|
||||
Reference in New Issue
Block a user