mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
97c511cd2f
Renamed `game` to `games` and `menu` to `menus`. Moved some functions from `engine/routines/` to their fitting subdirectories. Made two new subdirectories: * engine/rtc: Contains all RTC-related things. Menus, hardware, misc functions. * engine/items: Contains all item-related things. Pack, item effects, other item handlers.
32 lines
441 B
NASM
32 lines
441 B
NASM
PrintItemDescription: ; 0x1c8955
|
|
; 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, [wd265]
|
|
ld [wCurSpecies], a
|
|
predef PrintMoveDesc
|
|
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
|
|
; 0x1c8987
|