2018-06-24 17:10:37 -07:00
|
|
|
PrintItemDescription:
|
2018-01-23 14:39:09 -08:00
|
|
|
; Print the description for item [wCurSpecies] at de.
|
2018-01-12 00:15:58 -08:00
|
|
|
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wCurSpecies]
|
2018-01-12 00:15:58 -08:00
|
|
|
cp TM01
|
|
|
|
jr c, .not_a_tm
|
|
|
|
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wCurItem], a
|
2018-01-12 00:15:58 -08:00
|
|
|
push de
|
|
|
|
farcall GetTMHMItemMove
|
|
|
|
pop hl
|
2018-07-28 16:27:34 -07:00
|
|
|
ld a, [wTempTMHM]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wCurSpecies], a
|
2020-05-25 00:54:42 -07:00
|
|
|
predef PrintMoveDescription
|
2018-01-12 00:15:58 -08:00
|
|
|
ret
|
|
|
|
|
|
|
|
.not_a_tm
|
|
|
|
push de
|
|
|
|
ld hl, ItemDescriptions
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wCurSpecies]
|
2018-01-12 00:15:58 -08:00
|
|
|
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
|
2018-06-25 10:45:50 -07:00
|
|
|
|
|
|
|
INCLUDE "data/items/descriptions.asm"
|