mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
5c28d05bb4
# Conflicts: # data/items/descriptions.asm # data/sprite_anims/framesets.asm # engine/crystal_colors.asm # engine/events/kurt.asm # engine/events/special.asm # engine/events/std_scripts.asm # engine/events_3.asm # engine/item_effects.asm # engine/namingscreen.asm # engine/scripting.asm # engine/stats_screen.asm # engine/trade_animation.asm # home/audio.asm # main.asm # maps/BattleTower1F.asm # maps/BattleTowerBattleRoom.asm # maps/BurnedTowerB1F.asm # maps/ElmsLab.asm # maps/GoldenrodDeptStore5F.asm # maps/GoldenrodUnderground.asm # maps/HallOfFame.asm # maps/MahoganyTown.asm # maps/ManiasHouse.asm # maps/MobileBattleRoom.asm # maps/MobileTradeRoomMobile.asm # maps/RadioTower2F.asm # maps/Route35NationalParkGate.asm # maps/Route36NationalParkGate.asm # maps/Route39Farmhouse.asm # tilesets/palette_maps.asm
32 lines
443 B
NASM
32 lines
443 B
NASM
PrintItemDescription: ; 0x1c8955
|
|
; Print the description for item [CurSpecies] at de.
|
|
|
|
ld a, [CurSpecies]
|
|
cp TM01
|
|
jr c, .not_a_tm
|
|
|
|
ld [CurItem], a
|
|
push de
|
|
farcall GetTMHMItemMove
|
|
pop hl
|
|
ld a, [wd265]
|
|
ld [CurSpecies], a
|
|
predef Predef_PrintMoveDesc
|
|
ret
|
|
|
|
.not_a_tm
|
|
push de
|
|
ld hl, ItemDescriptions
|
|
ld a, [CurSpecies]
|
|
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
|