blob: 999c2075a3addd22d0e22a04a6cc2ad7f29ee41c (
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
32
|
PrintItemDescription:
; Print the description for item [wCurSpecies] at de.
ld a, [wCurSpecies]
cp TM01
jr c, .not_a_tm
ld [wCurItem], a
push de
farcall GetTMHMItemMove
pop hl
ld a, [wTempTMHM]
ld [wCurSpecies], a
predef PrintMoveDescription
ret
.not_a_tm
push de
ld hl, ItemDescriptions
ld a, [wCurSpecies]
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
INCLUDE "data/items/descriptions.asm"
|