blob: e6d087dae8bb6477def10094fce42cd68ec51465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
PrintItemDescription: ; 0x1c8955
; Print the description for item [CurSpecies] at de.
ld a, [CurSpecies]
cp TM01
jr c, .not_a_tm
ld [CurItem], a
push de
farcall GetTMHMItemMove
pop hl
ld a, [wd265]
ld [CurSpecies], a
predef PrintMoveDesc
ret
.not_a_tm
push de
ld hl, ItemDescriptions
ld a, [CurSpecies]
dec a
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld e, [hl]
inc hl
ld d, [hl]
pop hl
jp PlaceString
; 0x1c8987
|