2017-12-15 18:22:26 -08:00
|
|
|
BugContest_SetCaughtContestMon: ; e6ce
|
|
|
|
ld a, [wContestMon]
|
|
|
|
and a
|
|
|
|
jr z, .firstcatch
|
|
|
|
ld [wd265], a
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall DisplayAlreadyCaughtText
|
|
|
|
farcall DisplayCaughtContestMonStats
|
2017-12-15 18:22:26 -08:00
|
|
|
lb bc, 14, 7
|
|
|
|
call PlaceYesNoBox
|
|
|
|
ret c
|
|
|
|
|
|
|
|
.firstcatch
|
|
|
|
call .generatestats
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wTempEnemyMonSpecies]
|
2017-12-15 18:22:26 -08:00
|
|
|
ld [wd265], a
|
|
|
|
call GetPokemonName
|
|
|
|
ld hl, .caughttext
|
|
|
|
call PrintText
|
|
|
|
ret
|
|
|
|
|
|
|
|
.generatestats ; e6fd
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wTempEnemyMonSpecies]
|
|
|
|
ld [wCurSpecies], a
|
|
|
|
ld [wCurPartySpecies], a
|
2017-12-15 18:22:26 -08:00
|
|
|
call GetBaseData
|
|
|
|
xor a
|
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
|
|
|
ld hl, wContestMon
|
|
|
|
call ByteFill
|
|
|
|
xor a
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wMonType], a
|
2017-12-15 18:22:26 -08:00
|
|
|
ld hl, wContestMon
|
|
|
|
jp GeneratePartyMonStats
|
|
|
|
|
|
|
|
.caughttext ; 0xe71d
|
|
|
|
; Caught @ !
|
|
|
|
text_jump UnknownText_0x1c10c0
|
|
|
|
db "@"
|