You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Relabel GetItemDescription -> PrintItemDescription.
This commit is contained in:
@@ -1,23 +1,26 @@
|
|||||||
GetItemDescription: ; 0x1c8955
|
PrintItemDescription: ; 0x1c8955
|
||||||
ld a, [$cf60]
|
; Print the description for item [CurSpecies] at de.
|
||||||
|
|
||||||
|
ld a, [CurSpecies]
|
||||||
cp TM_01
|
cp TM_01
|
||||||
jr c, .nomovedesc ; if not a TM, use a predefined string
|
jr c, .not_a_tm
|
||||||
ld [$d106], a
|
|
||||||
|
ld [CurItem], a
|
||||||
push de
|
push de
|
||||||
callba Function2c7b6
|
callba GetTMHMItemMove
|
||||||
pop hl
|
pop hl
|
||||||
ld a, [$d265]
|
ld a, [$d265]
|
||||||
ld [$cf60], a
|
ld [CurSpecies], a
|
||||||
predef PrintMoveDesc
|
predef PrintMoveDesc
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.nomovedesc
|
.not_a_tm
|
||||||
push de
|
push de
|
||||||
ld hl, ItemDescriptions
|
ld hl, ItemDescriptions
|
||||||
ld a, [$cf60]
|
ld a, [CurSpecies]
|
||||||
dec a
|
dec a
|
||||||
ld c, a
|
ld c, a
|
||||||
ld b, $0
|
ld b, 0
|
||||||
add hl, bc
|
add hl, bc
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld e, [hl]
|
ld e, [hl]
|
||||||
|
|||||||
8
main.asm
8
main.asm
@@ -31701,7 +31701,7 @@ Function244c3: ; 0x244c3
|
|||||||
cp $ff
|
cp $ff
|
||||||
ret z
|
ret z
|
||||||
decoord 1, 14
|
decoord 1, 14
|
||||||
callba GetItemDescription
|
callba PrintItemDescription
|
||||||
ret
|
ret
|
||||||
; 0x244e3
|
; 0x244e3
|
||||||
|
|
||||||
@@ -42253,7 +42253,7 @@ Function2c7a7: ; 2c7a7 (b:47a7)
|
|||||||
ld [$d265], a
|
ld [$d265], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function2c7b6: ; 2c7b6 (b:47b6)
|
GetTMHMItemMove: ; 2c7b6 (b:47b6)
|
||||||
call Function2c7a7
|
call Function2c7a7
|
||||||
predef GetTMHMMove
|
predef GetTMHMMove
|
||||||
ret
|
ret
|
||||||
@@ -42264,9 +42264,9 @@ Function2c7bf: ; 2c7bf (b:47bf)
|
|||||||
push af
|
push af
|
||||||
res 4, [hl]
|
res 4, [hl]
|
||||||
ld a, [CurItem] ; $d106
|
ld a, [CurItem] ; $d106
|
||||||
cp $bf
|
cp TM_01
|
||||||
jr c, .asm_2c7f5
|
jr c, .asm_2c7f5
|
||||||
call Function2c7b6
|
call GetTMHMItemMove
|
||||||
ld a, [$d265]
|
ld a, [$d265]
|
||||||
ld [$d262], a
|
ld [$d262], a
|
||||||
call GetMoveName
|
call GetMoveName
|
||||||
|
|||||||
Reference in New Issue
Block a user