mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
32
engine/items/print_item_description.asm
Normal file
32
engine/items/print_item_description.asm
Normal file
|
|
@ -0,0 +1,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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue