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