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.
39 lines
792 B
NASM
39 lines
792 B
NASM
GetTrademonFrontpic: ; 4d7fd
|
|
ld a, [wOTTrademonSpecies]
|
|
ld hl, wOTTrademonDVs
|
|
ld de, vTiles2
|
|
push de
|
|
push af
|
|
predef GetUnownLetter
|
|
pop af
|
|
ld [wCurPartySpecies], a
|
|
ld [wCurSpecies], a
|
|
call GetBaseData
|
|
pop de
|
|
predef GetAnimatedFrontpic
|
|
ret
|
|
|
|
AnimateTrademonFrontpic: ; 4d81e
|
|
ld a, [wOTTrademonSpecies]
|
|
call IsAPokemon
|
|
ret c
|
|
farcall ShowOTTrademonStats
|
|
ld a, [wOTTrademonSpecies]
|
|
ld [wCurPartySpecies], a
|
|
ld a, [wOTTrademonDVs]
|
|
ld [wTempMonDVs], a
|
|
ld a, [wOTTrademonDVs + 1]
|
|
ld [wTempMonDVs + 1], a
|
|
ld b, SCGB_PLAYER_OR_MON_FRONTPIC_PALS
|
|
call GetSGBLayout
|
|
ld a, %11100100 ; 3,2,1,0
|
|
call DmgToCgbBGPals
|
|
farcall TradeAnim_ShowGetmonFrontpic
|
|
ld a, [wOTTrademonSpecies]
|
|
ld [wCurPartySpecies], a
|
|
hlcoord 7, 2
|
|
ld d, $0
|
|
ld e, ANIM_MON_TRADE
|
|
predef AnimateFrontpic
|
|
ret
|