2018-06-24 07:09:41 -07:00
|
|
|
GetTrademonFrontpic:
|
2017-12-16 16:00:50 -08:00
|
|
|
ld a, [wOTTrademonSpecies]
|
|
|
|
ld hl, wOTTrademonDVs
|
2017-12-28 04:32:33 -08:00
|
|
|
ld de, vTiles2
|
2017-12-16 16:00:50 -08:00
|
|
|
push de
|
|
|
|
push af
|
2018-01-16 11:30:10 -08:00
|
|
|
predef GetUnownLetter
|
2017-12-16 16:00:50 -08:00
|
|
|
pop af
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wCurPartySpecies], a
|
|
|
|
ld [wCurSpecies], a
|
2017-12-16 16:00:50 -08:00
|
|
|
call GetBaseData
|
|
|
|
pop de
|
2018-01-16 11:30:10 -08:00
|
|
|
predef GetAnimatedFrontpic
|
2017-12-16 16:00:50 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
AnimateTrademonFrontpic:
|
2017-12-16 16:00:50 -08:00
|
|
|
ld a, [wOTTrademonSpecies]
|
|
|
|
call IsAPokemon
|
|
|
|
ret c
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall ShowOTTrademonStats
|
2017-12-16 16:00:50 -08:00
|
|
|
ld a, [wOTTrademonSpecies]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wCurPartySpecies], a
|
2017-12-16 16:00:50 -08:00
|
|
|
ld a, [wOTTrademonDVs]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wTempMonDVs], a
|
2017-12-16 16:00:50 -08:00
|
|
|
ld a, [wOTTrademonDVs + 1]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wTempMonDVs + 1], a
|
2017-12-16 16:00:50 -08:00
|
|
|
ld b, SCGB_PLAYER_OR_MON_FRONTPIC_PALS
|
|
|
|
call GetSGBLayout
|
|
|
|
ld a, %11100100 ; 3,2,1,0
|
|
|
|
call DmgToCgbBGPals
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall TradeAnim_ShowGetmonFrontpic
|
2017-12-16 16:00:50 -08:00
|
|
|
ld a, [wOTTrademonSpecies]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wCurPartySpecies], a
|
2017-12-16 16:00:50 -08:00
|
|
|
hlcoord 7, 2
|
|
|
|
ld d, $0
|
|
|
|
ld e, ANIM_MON_TRADE
|
2018-01-16 11:30:10 -08:00
|
|
|
predef AnimateFrontpic
|
2017-12-16 16:00:50 -08:00
|
|
|
ret
|