2016-01-07 14:41:51 -08:00
|
|
|
PlayRadioShow:
|
2015-07-22 12:57:02 -07:00
|
|
|
; If we're already in the radio program proper, we don't need to be here.
|
2018-09-09 12:09:51 -07:00
|
|
|
ld a, [wCurRadioLine]
|
2015-11-09 20:01:45 -08:00
|
|
|
cp POKE_FLUTE_RADIO
|
2015-07-22 12:57:02 -07:00
|
|
|
jr nc, .ok
|
|
|
|
; If Team Rocket is not occupying the radio tower, we don't need to be here.
|
2017-12-28 04:15:46 -08:00
|
|
|
ld a, [wStatusFlags2]
|
2018-01-22 12:40:43 -08:00
|
|
|
bit STATUSFLAGS2_ROCKETS_IN_RADIO_TOWER_F, a
|
2015-07-22 12:57:02 -07:00
|
|
|
jr z, .ok
|
|
|
|
; If we're in Kanto, we don't need to be here.
|
|
|
|
call IsInJohto
|
|
|
|
and a
|
|
|
|
jr nz, .ok
|
|
|
|
; Team Rocket broadcasts on all stations.
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, ROCKET_RADIO
|
2018-09-09 12:09:51 -07:00
|
|
|
ld [wCurRadioLine], a
|
2015-07-22 12:57:02 -07:00
|
|
|
.ok
|
2018-09-09 12:09:51 -07:00
|
|
|
; Jump to the currently loaded station. The index to which we need to jump is in wCurRadioLine.
|
|
|
|
ld a, [wCurRadioLine]
|
2015-07-22 12:57:02 -07:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
ld hl, RadioJumptable
|
|
|
|
add hl, de
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, de
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
2017-06-09 14:01:10 -07:00
|
|
|
jp hl
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RadioJumptable:
|
2018-01-10 08:30:12 -08:00
|
|
|
; entries correspond to constants/radio_constants.asm
|
2018-02-22 08:13:29 -08:00
|
|
|
dw OaksPKMNTalk1 ; $00
|
2015-07-22 12:57:02 -07:00
|
|
|
dw PokedexShow1 ; $01
|
|
|
|
dw BenMonMusic1 ; $02
|
|
|
|
dw LuckyNumberShow1 ; $03
|
|
|
|
dw BuenasPassword1 ; $04
|
|
|
|
dw PeoplePlaces1 ; $05
|
|
|
|
dw FernMonMusic1 ; $06
|
|
|
|
dw RocketRadio1 ; $07
|
|
|
|
dw PokeFluteRadio ; $08
|
2015-10-09 20:09:03 -07:00
|
|
|
dw UnownRadio ; $09
|
|
|
|
dw EvolutionRadio ; $0a
|
2018-02-22 08:13:29 -08:00
|
|
|
; OaksPKMNTalk
|
|
|
|
dw OaksPKMNTalk2 ; $0b
|
|
|
|
dw OaksPKMNTalk3 ; $0c
|
|
|
|
dw OaksPKMNTalk4 ; $0d
|
|
|
|
dw OaksPKMNTalk5 ; $0e
|
|
|
|
dw OaksPKMNTalk6 ; $0f
|
|
|
|
dw OaksPKMNTalk7 ; $10
|
|
|
|
dw OaksPKMNTalk8 ; $11
|
|
|
|
dw OaksPKMNTalk9 ; $12
|
2015-10-09 20:09:03 -07:00
|
|
|
dw PokedexShow2 ; $13
|
|
|
|
dw PokedexShow3 ; $14
|
|
|
|
dw PokedexShow4 ; $15
|
|
|
|
dw PokedexShow5 ; $16
|
2015-07-22 12:57:02 -07:00
|
|
|
; Ben Music
|
|
|
|
dw BenMonMusic2 ; $17
|
|
|
|
dw BenMonMusic3 ; $18
|
|
|
|
dw BenFernMusic4 ; $19
|
|
|
|
dw BenFernMusic5 ; $1a
|
|
|
|
dw BenFernMusic6 ; $1b
|
|
|
|
dw BenFernMusic7 ; $1c
|
|
|
|
dw FernMonMusic2 ; $1d
|
|
|
|
; Lucky Number Show
|
|
|
|
dw LuckyNumberShow2 ; $1e
|
|
|
|
dw LuckyNumberShow3 ; $1f
|
|
|
|
dw LuckyNumberShow4 ; $20
|
|
|
|
dw LuckyNumberShow5 ; $21
|
|
|
|
dw LuckyNumberShow6 ; $22
|
|
|
|
dw LuckyNumberShow7 ; $23
|
|
|
|
dw LuckyNumberShow8 ; $24
|
|
|
|
dw LuckyNumberShow9 ; $25
|
|
|
|
dw LuckyNumberShow10 ; $26
|
|
|
|
dw LuckyNumberShow11 ; $27
|
|
|
|
dw LuckyNumberShow12 ; $28
|
|
|
|
dw LuckyNumberShow13 ; $29
|
|
|
|
dw LuckyNumberShow14 ; $2a
|
|
|
|
dw LuckyNumberShow15 ; $2b
|
2015-10-09 20:09:03 -07:00
|
|
|
; People & Places
|
|
|
|
dw PeoplePlaces2 ; $2c
|
|
|
|
dw PeoplePlaces3 ; $2d
|
|
|
|
dw PeoplePlaces4 ; $2e
|
|
|
|
dw PeoplePlaces5 ; $2f
|
|
|
|
dw PeoplePlaces6 ; $30
|
|
|
|
dw PeoplePlaces7 ; $31
|
2015-07-22 12:57:02 -07:00
|
|
|
; Rocket Radio
|
|
|
|
dw RocketRadio2 ; $32
|
|
|
|
dw RocketRadio3 ; $33
|
|
|
|
dw RocketRadio4 ; $34
|
|
|
|
dw RocketRadio5 ; $35
|
|
|
|
dw RocketRadio6 ; $36
|
|
|
|
dw RocketRadio7 ; $37
|
|
|
|
dw RocketRadio8 ; $38
|
|
|
|
dw RocketRadio9 ; $39
|
|
|
|
dw RocketRadio10 ; $3a
|
|
|
|
; More Pokemon Channel stuff
|
2018-02-22 08:13:29 -08:00
|
|
|
dw OaksPKMNTalk10 ; $3b
|
|
|
|
dw OaksPKMNTalk11 ; $3c
|
|
|
|
dw OaksPKMNTalk12 ; $3d
|
|
|
|
dw OaksPKMNTalk13 ; $3e
|
|
|
|
dw OaksPKMNTalk14 ; $3f
|
2015-07-22 12:57:02 -07:00
|
|
|
; Buenas Password
|
|
|
|
dw BuenasPassword2 ; $40
|
|
|
|
dw BuenasPassword3 ; $41
|
|
|
|
dw BuenasPassword4 ; $42
|
|
|
|
dw BuenasPassword5 ; $43
|
|
|
|
dw BuenasPassword6 ; $44
|
|
|
|
dw BuenasPassword7 ; $45
|
|
|
|
dw BuenasPassword8 ; $46
|
|
|
|
dw BuenasPassword9 ; $47
|
|
|
|
dw BuenasPassword10 ; $48
|
|
|
|
dw BuenasPassword11 ; $49
|
|
|
|
dw BuenasPassword12 ; $4a
|
|
|
|
dw BuenasPassword13 ; $4b
|
|
|
|
dw BuenasPassword14 ; $4c
|
|
|
|
dw BuenasPassword15 ; $4d
|
|
|
|
dw BuenasPassword16 ; $4e
|
|
|
|
dw BuenasPassword17 ; $4f
|
|
|
|
dw BuenasPassword18 ; $50
|
|
|
|
dw BuenasPassword19 ; $51
|
|
|
|
dw BuenasPassword20 ; $52
|
|
|
|
dw BuenasPassword21 ; $53
|
|
|
|
dw RadioScroll ; $54
|
|
|
|
; More Pokemon Channel stuff
|
2015-10-09 20:09:03 -07:00
|
|
|
dw PokedexShow6 ; $55
|
|
|
|
dw PokedexShow7 ; $56
|
|
|
|
dw PokedexShow8 ; $57
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PrintRadioLine:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNextRadioLine], a
|
|
|
|
ld hl, wRadioText
|
|
|
|
ld a, [wNumRadioLinesPrinted]
|
|
|
|
cp 2
|
2015-07-22 12:57:02 -07:00
|
|
|
jr nc, .print
|
|
|
|
inc hl
|
2018-01-18 15:34:20 -08:00
|
|
|
ld [hl], TX_START
|
2015-07-22 12:57:02 -07:00
|
|
|
inc a
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
|
|
|
cp 2
|
2015-07-22 12:57:02 -07:00
|
|
|
jr nz, .print
|
|
|
|
bccoord 1, 16
|
2016-05-08 11:11:24 -07:00
|
|
|
call PlaceHLTextAtBC
|
2015-07-22 12:57:02 -07:00
|
|
|
jr .skip
|
|
|
|
.print
|
|
|
|
call PrintTextBoxText
|
|
|
|
.skip
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, RADIO_SCROLL
|
2018-09-09 12:09:51 -07:00
|
|
|
ld [wCurRadioLine], a
|
2015-10-10 14:03:04 -07:00
|
|
|
ld a, 100
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wRadioTextDelay], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
ReplacePeriodsWithSpaces:
|
2015-07-22 12:57:02 -07:00
|
|
|
push hl
|
|
|
|
ld b, SCREEN_WIDTH * 2
|
2015-10-09 20:09:03 -07:00
|
|
|
.loop
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hl]
|
|
|
|
cp "."
|
|
|
|
jr nz, .next
|
|
|
|
ld [hl], " "
|
|
|
|
|
|
|
|
.next
|
|
|
|
inc hl
|
|
|
|
dec b
|
2015-10-09 20:09:03 -07:00
|
|
|
jr nz, .loop
|
2015-07-22 12:57:02 -07:00
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RadioScroll:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hl]
|
|
|
|
and a
|
|
|
|
jr z, .proceed
|
|
|
|
dec [hl]
|
|
|
|
ret
|
|
|
|
.proceed
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, [wNextRadioLine]
|
2018-09-09 12:09:51 -07:00
|
|
|
ld [wCurRadioLine], a
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, [wNumRadioLinesPrinted]
|
2015-07-22 12:57:02 -07:00
|
|
|
cp 1
|
|
|
|
call nz, CopyBottomLineToTopLine
|
|
|
|
jp ClearBottomLine
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk1:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, 5
|
2018-02-22 08:13:29 -08:00
|
|
|
ld [wOaksPKMNTalkSegmentCounter], a
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_IntroText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_2
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk2:
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_IntroText2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_3
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk3:
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_IntroText3
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_4
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk4:
|
2015-10-09 20:09:03 -07:00
|
|
|
; Choose a random route, and a random Pokemon from that route.
|
2016-05-15 18:50:31 -07:00
|
|
|
.sample
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-10 08:30:12 -08:00
|
|
|
and %11111
|
2018-02-25 17:39:54 -08:00
|
|
|
cp (OaksPKMNTalkRoutes.End - OaksPKMNTalkRoutes) / 2
|
2016-05-15 18:50:31 -07:00
|
|
|
jr nc, .sample
|
2015-10-09 20:09:03 -07:00
|
|
|
; We now have a number between 0 and 14.
|
2018-02-22 08:13:29 -08:00
|
|
|
ld hl, OaksPKMNTalkRoutes
|
2015-07-22 12:57:02 -07:00
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
add hl, bc
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, bc
|
2015-07-22 12:57:02 -07:00
|
|
|
ld b, [hl]
|
|
|
|
inc hl
|
|
|
|
ld c, [hl]
|
2015-10-09 20:09:03 -07:00
|
|
|
; bc now contains the chosen map's group and number indices.
|
2015-07-22 12:57:02 -07:00
|
|
|
push bc
|
|
|
|
|
2015-10-09 20:09:03 -07:00
|
|
|
; Search the JohtoGrassWildMons array for the chosen map.
|
2015-07-23 00:41:52 -07:00
|
|
|
ld hl, JohtoGrassWildMons
|
2015-10-09 20:09:03 -07:00
|
|
|
.loop
|
2015-07-23 00:41:52 -07:00
|
|
|
ld a, BANK(JohtoGrassWildMons)
|
2015-07-22 12:57:02 -07:00
|
|
|
call GetFarByte
|
|
|
|
cp -1
|
2015-10-09 20:09:03 -07:00
|
|
|
jr z, .overflow
|
2015-07-22 12:57:02 -07:00
|
|
|
inc hl
|
|
|
|
cp b
|
|
|
|
jr nz, .next
|
2015-07-23 00:41:52 -07:00
|
|
|
ld a, BANK(JohtoGrassWildMons)
|
2015-07-22 12:57:02 -07:00
|
|
|
call GetFarByte
|
|
|
|
cp c
|
|
|
|
jr z, .done
|
|
|
|
.next
|
|
|
|
dec hl
|
2017-12-08 21:50:59 -08:00
|
|
|
ld de, GRASS_WILDDATA_LENGTH
|
2015-07-22 12:57:02 -07:00
|
|
|
add hl, de
|
2015-10-09 20:09:03 -07:00
|
|
|
jr .loop
|
2015-07-22 12:57:02 -07:00
|
|
|
|
|
|
|
.done
|
2018-01-10 08:30:12 -08:00
|
|
|
; Point hl to the list of morning Pokémon., skipping percentages
|
2015-07-22 12:57:02 -07:00
|
|
|
rept 4
|
|
|
|
inc hl
|
|
|
|
endr
|
2015-10-09 20:09:03 -07:00
|
|
|
; Generate a number, either 0, 1, or 2, to choose a time of day.
|
|
|
|
.loop2
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-16 14:27:50 -08:00
|
|
|
maskbits NUM_DAYTIMES
|
2018-01-10 08:30:12 -08:00
|
|
|
cp DARKNESS_F
|
2015-10-09 20:09:03 -07:00
|
|
|
jr z, .loop2
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2017-12-08 21:50:59 -08:00
|
|
|
ld bc, 2 * NUM_GRASSMON
|
2015-07-22 12:57:02 -07:00
|
|
|
call AddNTimes
|
2015-10-09 20:09:03 -07:00
|
|
|
.loop3
|
|
|
|
; Choose one of the middle three Pokemon.
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2017-12-08 21:50:59 -08:00
|
|
|
and NUM_GRASSMON
|
2015-07-22 12:57:02 -07:00
|
|
|
cp 2
|
2015-10-09 20:09:03 -07:00
|
|
|
jr c, .loop3
|
2015-07-22 12:57:02 -07:00
|
|
|
cp 5
|
2015-10-09 20:09:03 -07:00
|
|
|
jr nc, .loop3
|
2015-07-22 12:57:02 -07:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
add hl, de
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, de
|
2015-10-09 20:09:03 -07:00
|
|
|
inc hl ; skip level
|
2015-07-23 00:41:52 -07:00
|
|
|
ld a, BANK(JohtoGrassWildMons)
|
2015-07-22 12:57:02 -07:00
|
|
|
call GetFarByte
|
2015-10-09 20:09:03 -07:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wCurPartySpecies], a
|
2015-07-22 12:57:02 -07:00
|
|
|
call GetPokemonName
|
2018-01-23 14:39:09 -08:00
|
|
|
ld hl, wStringBuffer1
|
2015-12-18 17:07:09 -08:00
|
|
|
ld de, wMonOrItemNameBuffer
|
2018-01-20 09:25:55 -08:00
|
|
|
ld bc, MON_NAME_LENGTH
|
2015-07-22 12:57:02 -07:00
|
|
|
call CopyBytes
|
2018-01-10 08:30:12 -08:00
|
|
|
|
2015-10-09 20:09:03 -07:00
|
|
|
; Now that we've chosen our wild Pokemon,
|
|
|
|
; let's recover the map index info and get its name.
|
2015-07-22 12:57:02 -07:00
|
|
|
pop bc
|
|
|
|
call GetWorldMapLocation
|
|
|
|
ld e, a
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall GetLandmarkName
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_OakText1
|
2015-07-22 12:57:02 -07:00
|
|
|
call CopyRadioTextToRAM
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_5
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-09 20:09:03 -07:00
|
|
|
.overflow
|
2015-07-22 12:57:02 -07:00
|
|
|
pop bc
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, OAKS_POKEMON_TALK
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2018-01-10 08:30:12 -08:00
|
|
|
INCLUDE "data/radio/oaks_pkmn_talk_routes.asm"
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk5:
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_OakText2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_6
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk6:
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_OakText3
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_7
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_IntroText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; MARY: PROF.OAK'S
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _OPT_IntroText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_IntroText2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; #MON TALK!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _OPT_IntroText2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_IntroText3:
|
2015-07-22 12:57:02 -07:00
|
|
|
; With me, MARY!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _OPT_IntroText3
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_OakText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; OAK: @ @
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _OPT_OakText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_OakText2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; may be seen around
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _OPT_OakText2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_OakText3:
|
2015-07-22 12:57:02 -07:00
|
|
|
; @ .
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _OPT_OakText3
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk7:
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wCurPartySpecies]
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-07-22 12:57:02 -07:00
|
|
|
call GetPokemonName
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_MaryText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_8
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_MaryText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; MARY: @ 's
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _OPT_MaryText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk8:
|
2018-01-10 08:57:28 -08:00
|
|
|
; 0-15 are all valid indexes into .Adverbs,
|
|
|
|
; so no need for a retry loop
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-02-22 08:13:29 -08:00
|
|
|
maskbits NUM_OAKS_POKEMON_TALK_ADVERBS
|
2015-07-22 12:57:02 -07:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2018-01-10 08:57:28 -08:00
|
|
|
ld hl, .Adverbs
|
2015-07-22 12:57:02 -07:00
|
|
|
add hl, de
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, de
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_9
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-01-10 08:57:28 -08:00
|
|
|
.Adverbs:
|
2018-02-22 08:13:29 -08:00
|
|
|
; there are NUM_OAKS_POKEMON_TALK_ADVERBS entries
|
2015-10-09 20:09:03 -07:00
|
|
|
dw .sweetadorably
|
|
|
|
dw .wigglyslickly
|
|
|
|
dw .aptlynamed
|
|
|
|
dw .undeniablykindof
|
|
|
|
dw .unbearably
|
|
|
|
dw .wowimpressively
|
|
|
|
dw .almostpoisonously
|
|
|
|
dw .sensually
|
|
|
|
dw .mischievously
|
|
|
|
dw .topically
|
|
|
|
dw .addictively
|
|
|
|
dw .looksinwater
|
|
|
|
dw .evolutionmustbe
|
|
|
|
dw .provocatively
|
|
|
|
dw .flippedout
|
|
|
|
dw .heartmeltingly
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.sweetadorably
|
2015-07-22 12:57:02 -07:00
|
|
|
; sweet and adorably
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_SweetAdorably
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.wigglyslickly
|
2015-07-22 12:57:02 -07:00
|
|
|
; wiggly and slickly
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_WigglySlickly
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.aptlynamed
|
2015-07-22 12:57:02 -07:00
|
|
|
; aptly named and
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_AptlyNamed
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.undeniablykindof
|
2015-07-22 12:57:02 -07:00
|
|
|
; undeniably kind of
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_UndeniablyKindOf
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.unbearably
|
2015-07-22 12:57:02 -07:00
|
|
|
; so, so unbearably
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Unbearably
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.wowimpressively
|
2015-07-22 12:57:02 -07:00
|
|
|
; wow, impressively
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_WowImpressively
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.almostpoisonously
|
2015-07-22 12:57:02 -07:00
|
|
|
; almost poisonously
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_AlmostPoisonously
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.sensually
|
2015-07-22 12:57:02 -07:00
|
|
|
; ooh, so sensually
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Sensually
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.mischievously
|
2015-07-22 12:57:02 -07:00
|
|
|
; so mischievously
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Mischievously
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.topically
|
2015-07-22 12:57:02 -07:00
|
|
|
; so very topically
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Topically
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.addictively
|
2015-07-22 12:57:02 -07:00
|
|
|
; sure addictively
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Addictively
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.looksinwater
|
2015-07-22 12:57:02 -07:00
|
|
|
; looks in water is
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_LooksInWater
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.evolutionmustbe
|
2015-07-22 12:57:02 -07:00
|
|
|
; evolution must be
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_EvolutionMustBe
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.provocatively
|
2015-07-22 12:57:02 -07:00
|
|
|
; provocatively
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Provocatively
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.flippedout
|
2015-07-22 12:57:02 -07:00
|
|
|
; so flipped out and
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_FlippedOut
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.heartmeltingly
|
2015-07-22 12:57:02 -07:00
|
|
|
; heart-meltingly
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_HeartMeltingly
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk9:
|
2018-01-10 08:57:28 -08:00
|
|
|
; 0-15 are all valid indexes into .Adjectives,
|
|
|
|
; so no need for a retry loop
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-02-22 08:13:29 -08:00
|
|
|
maskbits NUM_OAKS_POKEMON_TALK_ADJECTIVES
|
2015-07-22 12:57:02 -07:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2018-01-10 08:57:28 -08:00
|
|
|
ld hl, .Adjectives
|
2015-07-22 12:57:02 -07:00
|
|
|
add hl, de
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, de
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
2018-02-22 08:13:29 -08:00
|
|
|
ld a, [wOaksPKMNTalkSegmentCounter]
|
2015-07-22 12:57:02 -07:00
|
|
|
dec a
|
2018-02-22 08:13:29 -08:00
|
|
|
ld [wOaksPKMNTalkSegmentCounter], a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_4
|
|
|
|
jr nz, .ok
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, 5
|
2018-02-22 08:13:29 -08:00
|
|
|
ld [wOaksPKMNTalkSegmentCounter], a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_10
|
|
|
|
.ok
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-01-10 08:57:28 -08:00
|
|
|
.Adjectives:
|
2018-02-22 08:13:29 -08:00
|
|
|
; there are NUM_OAKS_POKEMON_TALK_ADJECTIVES entries
|
2015-10-09 20:09:03 -07:00
|
|
|
dw .cute
|
|
|
|
dw .weird
|
|
|
|
dw .pleasant
|
|
|
|
dw .boldsortof
|
|
|
|
dw .frightening
|
|
|
|
dw .suavedebonair
|
|
|
|
dw .powerful
|
|
|
|
dw .exciting
|
|
|
|
dw .groovy
|
|
|
|
dw .inspiring
|
|
|
|
dw .friendly
|
|
|
|
dw .hothothot
|
|
|
|
dw .stimulating
|
|
|
|
dw .guarded
|
|
|
|
dw .lovely
|
|
|
|
dw .speedy
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.cute
|
2015-07-22 12:57:02 -07:00
|
|
|
; cute.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Cute
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.weird
|
2015-07-22 12:57:02 -07:00
|
|
|
; weird.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Weird
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.pleasant
|
2015-07-22 12:57:02 -07:00
|
|
|
; pleasant.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Pleasant
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.boldsortof
|
2015-07-22 12:57:02 -07:00
|
|
|
; bold, sort of.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_BoldSortOf
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.frightening
|
2015-07-22 12:57:02 -07:00
|
|
|
; frightening.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Frightening
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.suavedebonair
|
2015-07-22 12:57:02 -07:00
|
|
|
; suave & debonair!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_SuaveDebonair
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.powerful
|
2015-07-22 12:57:02 -07:00
|
|
|
; powerful.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Powerful
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.exciting
|
2015-07-22 12:57:02 -07:00
|
|
|
; exciting.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Exciting
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.groovy
|
2015-07-22 12:57:02 -07:00
|
|
|
; groovy!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Groovy
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.inspiring
|
2015-07-22 12:57:02 -07:00
|
|
|
; inspiring.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Inspiring
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.friendly
|
2015-07-22 12:57:02 -07:00
|
|
|
; friendly.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Friendly
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.hothothot
|
2015-07-22 12:57:02 -07:00
|
|
|
; hot, hot, hot!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_HotHotHot
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.stimulating
|
2015-07-22 12:57:02 -07:00
|
|
|
; stimulating.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Stimulating
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.guarded
|
2015-07-22 12:57:02 -07:00
|
|
|
; guarded.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Guarded
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.lovely
|
2015-07-22 12:57:02 -07:00
|
|
|
; lovely.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Lovely
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.speedy
|
2015-07-22 12:57:02 -07:00
|
|
|
; speedy.
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump OPT_Speedy
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk10:
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall RadioMusicRestartPokemonChannel
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_RestartText
|
2015-07-22 12:57:02 -07:00
|
|
|
call PrintText
|
|
|
|
call WaitBGMap
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, OPT_PokemonChannelText
|
2015-07-22 12:57:02 -07:00
|
|
|
call PrintText
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_11
|
2018-09-09 12:09:51 -07:00
|
|
|
ld [wCurRadioLine], a
|
2015-10-10 14:03:04 -07:00
|
|
|
ld a, 100
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wRadioTextDelay], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_PokemonChannelText:
|
2015-07-22 12:57:02 -07:00
|
|
|
; #MON
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _OPT_PokemonChannelText
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
OPT_RestartText:
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk11:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 12:57:02 -07:00
|
|
|
dec [hl]
|
|
|
|
ret nz
|
|
|
|
hlcoord 9, 14
|
2015-10-09 20:09:03 -07:00
|
|
|
ld de, .pokemon_string
|
|
|
|
ld a, OAKS_POKEMON_TALK_12
|
|
|
|
jp PlaceRadioString
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.pokemon_string
|
2015-07-22 12:57:02 -07:00
|
|
|
db "#MON@"
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk12:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 12:57:02 -07:00
|
|
|
dec [hl]
|
|
|
|
ret nz
|
|
|
|
hlcoord 1, 16
|
2015-10-09 20:09:03 -07:00
|
|
|
ld de, .pokemon_channel_string
|
|
|
|
ld a, OAKS_POKEMON_TALK_13
|
|
|
|
jp PlaceRadioString
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.pokemon_channel_string
|
2015-07-22 12:57:02 -07:00
|
|
|
db "#MON Channel@"
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk13:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 12:57:02 -07:00
|
|
|
dec [hl]
|
|
|
|
ret nz
|
|
|
|
hlcoord 12, 16
|
2015-10-09 20:09:03 -07:00
|
|
|
ld de, .terminator
|
|
|
|
ld a, OAKS_POKEMON_TALK_14
|
|
|
|
jp PlaceRadioString
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.terminator
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
OaksPKMNTalk14:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 12:57:02 -07:00
|
|
|
dec [hl]
|
|
|
|
ret nz
|
2018-01-10 08:30:12 -08:00
|
|
|
ld de, MUSIC_POKEMON_TALK
|
2017-12-24 09:47:30 -08:00
|
|
|
callfar RadioMusicRestartDE
|
2015-10-09 20:09:03 -07:00
|
|
|
ld hl, .terminator
|
2015-07-22 12:57:02 -07:00
|
|
|
call PrintText
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, OAKS_POKEMON_TALK_4
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNextRadioLine], a
|
2015-07-22 12:57:02 -07:00
|
|
|
xor a
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, RADIO_SCROLL
|
2018-09-09 12:09:51 -07:00
|
|
|
ld [wCurRadioLine], a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, 10
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wRadioTextDelay], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
.terminator
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PlaceRadioString:
|
2018-09-09 12:09:51 -07:00
|
|
|
ld [wCurRadioLine], a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, 100
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wRadioTextDelay], a
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PlaceString
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
CopyBottomLineToTopLine:
|
2015-07-22 12:57:02 -07:00
|
|
|
hlcoord 0, 15
|
|
|
|
decoord 0, 13
|
|
|
|
ld bc, SCREEN_WIDTH * 2
|
|
|
|
jp CopyBytes
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
ClearBottomLine:
|
2015-07-22 12:57:02 -07:00
|
|
|
hlcoord 1, 15
|
2015-11-09 20:01:45 -08:00
|
|
|
ld bc, SCREEN_WIDTH - 2
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
|
|
|
hlcoord 1, 16
|
2015-11-09 20:01:45 -08:00
|
|
|
ld bc, SCREEN_WIDTH - 2
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, " "
|
|
|
|
jp ByteFill
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow_GetDexEntryBank:
|
2015-07-22 12:57:02 -07:00
|
|
|
push hl
|
|
|
|
push de
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wCurPartySpecies]
|
2015-07-22 12:57:02 -07:00
|
|
|
dec a
|
|
|
|
rlca
|
|
|
|
rlca
|
2018-01-16 14:27:50 -08:00
|
|
|
maskbits NUM_DEX_ENTRY_BANKS
|
2018-01-11 09:00:01 -08:00
|
|
|
ld hl, .PokedexEntryBanks
|
2015-07-22 12:57:02 -07:00
|
|
|
ld d, 0
|
|
|
|
ld e, a
|
|
|
|
add hl, de
|
|
|
|
ld a, [hl]
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
|
2018-02-03 17:40:21 -08:00
|
|
|
.PokedexEntryBanks:
|
2018-06-12 20:29:15 -07:00
|
|
|
db BANK("Pokedex Entries 001-064")
|
|
|
|
db BANK("Pokedex Entries 065-128")
|
|
|
|
db BANK("Pokedex Entries 129-192")
|
|
|
|
db BANK("Pokedex Entries 193-251")
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow1:
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2015-10-09 20:09:03 -07:00
|
|
|
.loop
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2015-11-09 20:01:45 -08:00
|
|
|
cp NUM_POKEMON
|
2015-10-09 20:09:03 -07:00
|
|
|
jr nc, .loop
|
2015-07-22 12:57:02 -07:00
|
|
|
ld c, a
|
|
|
|
push bc
|
|
|
|
ld a, c
|
|
|
|
call CheckCaughtMon
|
|
|
|
pop bc
|
2015-10-09 20:09:03 -07:00
|
|
|
jr z, .loop
|
2015-07-22 12:57:02 -07:00
|
|
|
inc c
|
|
|
|
ld a, c
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wCurPartySpecies], a
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-07-22 12:57:02 -07:00
|
|
|
call GetPokemonName
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, PokedexShowText
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEDEX_SHOW_2
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow2:
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wCurPartySpecies]
|
2015-07-22 12:57:02 -07:00
|
|
|
dec a
|
|
|
|
ld hl, PokedexDataPointerTable
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
add hl, bc
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, bc
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, BANK(PokedexDataPointerTable)
|
|
|
|
call GetFarHalfword
|
2015-10-09 20:09:03 -07:00
|
|
|
call PokedexShow_GetDexEntryBank
|
2015-07-22 12:57:02 -07:00
|
|
|
push af
|
|
|
|
push hl
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntryPart1
|
2015-07-22 12:57:02 -07:00
|
|
|
dec hl
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [hl], "<DONE>"
|
|
|
|
ld hl, wPokedexShowPointerAddr
|
2015-07-22 12:57:02 -07:00
|
|
|
call CopyRadioTextToRAM
|
|
|
|
pop hl
|
|
|
|
pop af
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntryPart2
|
2015-07-22 12:57:02 -07:00
|
|
|
rept 4
|
|
|
|
inc hl
|
|
|
|
endr
|
|
|
|
ld a, l
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wPokedexShowPointerAddr], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, h
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wPokedexShowPointerAddr + 1], a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEDEX_SHOW_3
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow3:
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_4
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow4:
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_5
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow5:
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_6
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow6:
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_7
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow7:
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_8
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShow8:
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
CopyDexEntry:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, [wPokedexShowPointerAddr]
|
2015-07-22 12:57:02 -07:00
|
|
|
ld l, a
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, [wPokedexShowPointerAddr + 1]
|
2015-07-22 12:57:02 -07:00
|
|
|
ld h, a
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, [wPokedexShowPointerBank]
|
2015-07-22 12:57:02 -07:00
|
|
|
push af
|
|
|
|
push hl
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntryPart1
|
2015-07-22 12:57:02 -07:00
|
|
|
dec hl
|
2015-10-09 20:09:03 -07:00
|
|
|
ld [hl], "<DONE>"
|
2015-11-09 20:01:45 -08:00
|
|
|
ld hl, wPokedexShowPointerAddr
|
2015-07-22 12:57:02 -07:00
|
|
|
call CopyRadioTextToRAM
|
|
|
|
pop hl
|
|
|
|
pop af
|
2015-10-09 20:09:03 -07:00
|
|
|
call CopyDexEntryPart2
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
CopyDexEntryPart1:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld de, wPokedexShowPointerBank
|
2015-10-09 20:09:03 -07:00
|
|
|
ld bc, SCREEN_WIDTH - 1
|
2015-07-22 12:57:02 -07:00
|
|
|
call FarCopyBytes
|
2015-11-09 20:01:45 -08:00
|
|
|
ld hl, wPokedexShowPointerAddr
|
2018-01-18 15:34:20 -08:00
|
|
|
ld [hl], TX_START
|
2015-07-22 12:57:02 -07:00
|
|
|
inc hl
|
2015-10-09 20:09:03 -07:00
|
|
|
ld [hl], "<LINE>"
|
2015-07-22 12:57:02 -07:00
|
|
|
inc hl
|
2015-10-09 20:09:03 -07:00
|
|
|
.loop
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hli]
|
2015-10-09 20:09:03 -07:00
|
|
|
cp "@"
|
2015-07-22 12:57:02 -07:00
|
|
|
ret z
|
2015-10-09 20:09:03 -07:00
|
|
|
cp "<NEXT>"
|
2015-07-22 12:57:02 -07:00
|
|
|
ret z
|
2015-10-09 20:09:03 -07:00
|
|
|
cp "<DEXEND>"
|
2015-07-22 12:57:02 -07:00
|
|
|
ret z
|
2015-10-09 20:09:03 -07:00
|
|
|
jr .loop
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
CopyDexEntryPart2:
|
2015-07-22 12:57:02 -07:00
|
|
|
ld d, a
|
2015-10-09 20:09:03 -07:00
|
|
|
.loop
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, d
|
|
|
|
call GetFarByte
|
|
|
|
inc hl
|
2015-10-09 20:09:03 -07:00
|
|
|
cp "@"
|
|
|
|
jr z, .okay
|
|
|
|
cp "<NEXT>"
|
|
|
|
jr z, .okay
|
|
|
|
cp "<DEXEND>"
|
|
|
|
jr nz, .loop
|
|
|
|
.okay
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, l
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wPokedexShowPointerAddr], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, h
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wPokedexShowPointerAddr + 1], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, d
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wPokedexShowPointerBank], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokedexShowText:
|
2015-07-22 12:57:02 -07:00
|
|
|
; @ @
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _PokedexShowText
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenMonMusic1:
|
2015-10-09 20:09:03 -07:00
|
|
|
call StartPokemonMusicChannel
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BenIntroText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEMON_MUSIC_2
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenMonMusic2:
|
|
|
|
ld hl, BenIntroText2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEMON_MUSIC_3
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenMonMusic3:
|
|
|
|
ld hl, BenIntroText3
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEMON_MUSIC_4
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
FernMonMusic1:
|
2015-10-09 20:09:03 -07:00
|
|
|
call StartPokemonMusicChannel
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, FernIntroText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LETS_ALL_SING_2
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
FernMonMusic2:
|
|
|
|
ld hl, FernIntroMusic2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEMON_MUSIC_4
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernMusic4:
|
|
|
|
ld hl, BenFernText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEMON_MUSIC_5
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernMusic5:
|
2015-07-22 12:57:02 -07:00
|
|
|
call GetWeekday
|
|
|
|
and 1
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BenFernText2A
|
2015-10-09 20:09:03 -07:00
|
|
|
jr z, .SunTueThurSun
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BenFernText2B
|
2016-04-10 11:42:14 -07:00
|
|
|
.SunTueThurSun:
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEMON_MUSIC_6
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernMusic6:
|
2015-07-22 12:57:02 -07:00
|
|
|
call GetWeekday
|
|
|
|
and 1
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BenFernText3A
|
2015-10-09 20:09:03 -07:00
|
|
|
jr z, .SunTueThurSun
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BenFernText3B
|
2016-04-10 11:42:14 -07:00
|
|
|
.SunTueThurSun:
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, POKEMON_MUSIC_7
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernMusic7:
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
StartPokemonMusicChannel:
|
2015-07-22 12:57:02 -07:00
|
|
|
call RadioTerminator
|
|
|
|
call PrintText
|
|
|
|
ld de, MUSIC_POKEMON_MARCH
|
|
|
|
call GetWeekday
|
|
|
|
and 1
|
2015-10-09 20:09:03 -07:00
|
|
|
jr z, .SunTueThurSun
|
2015-07-22 12:57:02 -07:00
|
|
|
ld de, MUSIC_POKEMON_LULLABY
|
2016-04-10 11:42:14 -07:00
|
|
|
.SunTueThurSun:
|
2017-12-24 09:47:30 -08:00
|
|
|
callfar RadioMusicRestartDE
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenIntroText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; BEN: #MON MUSIC
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BenIntroText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenIntroText2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; CHANNEL!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BenIntroText2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenIntroText3:
|
2015-07-22 12:57:02 -07:00
|
|
|
; It's me, DJ BEN!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BenIntroText3
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
FernIntroText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; FERN: #MUSIC!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _FernIntroText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
FernIntroMusic2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; With DJ FERN!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _FernIntroText2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Today's @ ,
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BenFernText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernText2A:
|
2015-07-22 12:57:02 -07:00
|
|
|
; so let us jam to
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BenFernText2A
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernText2B:
|
2015-07-22 12:57:02 -07:00
|
|
|
; so chill out to
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BenFernText2B
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernText3A:
|
2015-07-22 12:57:02 -07:00
|
|
|
; #MON March!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BenFernText3A
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BenFernText3B:
|
2015-07-22 12:57:02 -07:00
|
|
|
; #MON Lullaby!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BenFernText3B
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow1:
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2018-01-24 08:17:05 -08:00
|
|
|
callfar CheckLuckyNumberShowFlag
|
2015-10-10 14:03:04 -07:00
|
|
|
jr nc, .dontreset
|
2018-01-24 08:17:05 -08:00
|
|
|
callfar ResetLuckyNumberShowFlag
|
2015-10-10 14:03:04 -07:00
|
|
|
.dontreset
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, LC_Text1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_2
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow2:
|
|
|
|
ld hl, LC_Text2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_3
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow3:
|
|
|
|
ld hl, LC_Text3
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_4
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow4:
|
|
|
|
ld hl, LC_Text4
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_5
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow5:
|
|
|
|
ld hl, LC_Text5
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_6
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow6:
|
|
|
|
ld hl, LC_Text6
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_7
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow7:
|
|
|
|
ld hl, LC_Text7
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_8
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow8:
|
2018-01-23 14:39:09 -08:00
|
|
|
ld hl, wStringBuffer1
|
2015-10-10 14:03:04 -07:00
|
|
|
ld de, wLuckyIDNumber
|
|
|
|
lb bc, PRINTNUM_LEADINGZEROS | 2, 5
|
2015-07-22 12:57:02 -07:00
|
|
|
call PrintNum
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, "@"
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wStringBuffer1 + 5], a
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, LC_Text8
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_9
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow9:
|
|
|
|
ld hl, LC_Text9
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_10
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow10:
|
|
|
|
ld hl, LC_Text7
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_11
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow11:
|
|
|
|
ld hl, LC_Text8
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_12
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow12:
|
|
|
|
ld hl, LC_Text10
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_13
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow13:
|
|
|
|
ld hl, LC_Text11
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
|
|
|
and a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_CHANNEL
|
|
|
|
jr nz, .okay
|
|
|
|
ld a, LUCKY_NUMBER_SHOW_14
|
|
|
|
.okay
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow14:
|
|
|
|
ld hl, LC_DragText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_15
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LuckyNumberShow15:
|
|
|
|
ld hl, LC_DragText2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, LUCKY_CHANNEL
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; REED: Yeehaw! How
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; y'all doin' now?
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text3:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Whether you're up
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text3
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text4:
|
2015-07-22 12:57:02 -07:00
|
|
|
; or way down low,
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text4
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text5:
|
2015-07-22 12:57:02 -07:00
|
|
|
; don't you miss the
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text5
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text6:
|
2015-07-22 12:57:02 -07:00
|
|
|
; LUCKY NUMBER SHOW!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text6
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text7:
|
2015-07-22 12:57:02 -07:00
|
|
|
; This week's Lucky
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text7
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text8:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Number is @ !
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text8
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text9:
|
2015-07-22 12:57:02 -07:00
|
|
|
; I'll repeat that!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text9
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text10:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Match it and go to
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text10
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_Text11:
|
2015-07-22 12:57:02 -07:00
|
|
|
; the RADIO TOWER!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_Text11
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_DragText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; …Repeating myself
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_DragText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
LC_DragText2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; gets to be a drag…
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _LC_DragText2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PeoplePlaces1:
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, PnP_Text1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE_2
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PeoplePlaces2:
|
|
|
|
ld hl, PnP_Text2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE_3
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PeoplePlaces3:
|
|
|
|
ld hl, PnP_Text3
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-10 08:30:12 -08:00
|
|
|
cp 49 percent - 1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE_4 ; People
|
|
|
|
jr c, .ok
|
|
|
|
ld a, PLACES_AND_PEOPLE_6 ; Places
|
|
|
|
.ok
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PnP_Text1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; PLACES AND PEOPLE!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _PnP_Text1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PnP_Text2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Brought to you by
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _PnP_Text2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PnP_Text3:
|
2015-07-22 12:57:02 -07:00
|
|
|
; me, DJ LILY!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _PnP_Text3
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2015-10-09 20:09:03 -07:00
|
|
|
PeoplePlaces4: ; People
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-16 14:27:50 -08:00
|
|
|
maskbits NUM_TRAINER_CLASSES
|
2015-07-22 12:57:02 -07:00
|
|
|
inc a
|
2015-10-09 20:09:03 -07:00
|
|
|
cp NUM_TRAINER_CLASSES - 1
|
|
|
|
jr nc, PeoplePlaces4
|
2015-07-22 12:57:02 -07:00
|
|
|
push af
|
2018-01-10 08:30:12 -08:00
|
|
|
ld hl, PnP_HiddenPeople
|
2017-12-28 04:15:46 -08:00
|
|
|
ld a, [wStatusFlags]
|
2018-01-22 12:40:43 -08:00
|
|
|
bit STATUSFLAGS_HALL_OF_FAME_F, a
|
2015-10-09 20:09:03 -07:00
|
|
|
jr z, .ok
|
2018-01-10 08:30:12 -08:00
|
|
|
ld hl, PnP_HiddenPeople_BeatE4
|
2017-12-28 04:15:46 -08:00
|
|
|
ld a, [wKantoBadges]
|
2018-01-10 08:30:12 -08:00
|
|
|
cp %11111111 ; all badges
|
2015-10-09 20:09:03 -07:00
|
|
|
jr nz, .ok
|
2018-01-10 08:30:12 -08:00
|
|
|
ld hl, PnP_HiddenPeople_BeatKanto
|
2015-10-09 20:09:03 -07:00
|
|
|
.ok
|
2015-07-22 12:57:02 -07:00
|
|
|
pop af
|
|
|
|
ld c, a
|
2015-10-09 20:09:03 -07:00
|
|
|
ld de, 1
|
2015-07-22 12:57:02 -07:00
|
|
|
push bc
|
|
|
|
call IsInArray
|
|
|
|
pop bc
|
2015-10-09 20:09:03 -07:00
|
|
|
jr c, PeoplePlaces4
|
2015-07-22 12:57:02 -07:00
|
|
|
push bc
|
2017-12-24 09:47:30 -08:00
|
|
|
callfar GetTrainerClassName
|
2018-01-23 14:39:09 -08:00
|
|
|
ld de, wStringBuffer1
|
2015-07-22 12:57:02 -07:00
|
|
|
call CopyName1
|
|
|
|
pop bc
|
2015-10-09 20:09:03 -07:00
|
|
|
ld b, 1
|
2017-12-24 09:47:30 -08:00
|
|
|
callfar GetTrainerName
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, PnP_Text4
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE_5
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-01-10 08:30:12 -08:00
|
|
|
INCLUDE "data/radio/pnp_hidden_people.asm"
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PnP_Text4:
|
2015-07-22 12:57:02 -07:00
|
|
|
; @ @ @
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _PnP_Text4
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PeoplePlaces5:
|
2018-01-10 08:57:28 -08:00
|
|
|
; 0-15 are all valid indexes into .Adjectives,
|
|
|
|
; so no need for a retry loop
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-16 14:27:50 -08:00
|
|
|
maskbits NUM_PNP_PEOPLE_ADJECTIVES
|
2015-07-22 12:57:02 -07:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2018-01-10 08:57:28 -08:00
|
|
|
ld hl, .Adjectives
|
2015-07-22 12:57:02 -07:00
|
|
|
add hl, de
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, de
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
call Random
|
2018-01-10 08:30:12 -08:00
|
|
|
cp 4 percent
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE
|
|
|
|
jr c, .ok
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-10 08:30:12 -08:00
|
|
|
cp 49 percent - 1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE_4 ; People
|
|
|
|
jr c, .ok
|
|
|
|
ld a, PLACES_AND_PEOPLE_6 ; Places
|
|
|
|
.ok
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-01-10 08:57:28 -08:00
|
|
|
.Adjectives:
|
|
|
|
; there are NUM_PNP_PEOPLE_ADJECTIVES entries
|
2015-10-09 20:09:03 -07:00
|
|
|
dw PnP_cute
|
|
|
|
dw PnP_lazy
|
|
|
|
dw PnP_happy
|
|
|
|
dw PnP_noisy
|
|
|
|
dw PnP_precocious
|
|
|
|
dw PnP_bold
|
|
|
|
dw PnP_picky
|
|
|
|
dw PnP_sortofok
|
2016-01-06 10:01:20 -08:00
|
|
|
dw PnP_soso
|
|
|
|
dw PnP_great
|
|
|
|
dw PnP_mytype
|
|
|
|
dw PnP_cool
|
2015-10-09 20:09:03 -07:00
|
|
|
dw PnP_inspiring
|
|
|
|
dw PnP_weird
|
|
|
|
dw PnP_rightforme
|
|
|
|
dw PnP_odd
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_cute:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is cute.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_cute
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_lazy:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is sort of lazy.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_lazy
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_happy:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is always happy.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_happy
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_noisy:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is quite noisy.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_noisy
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_precocious:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is precocious.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_precocious
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_bold:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is somewhat bold.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_bold
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_picky:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is too picky!
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_picky
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_sortofok:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is sort of OK.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_sortofok
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_soso:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is just so-so.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_soso
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_great:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is actually great.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_great
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_mytype:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is just my type.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_mytype
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_cool:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is so cool, no?
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_cool
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_inspiring:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is inspiring!
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_inspiring
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_weird:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is kind of weird.
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_weird
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_rightforme:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is right for me?
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_rightforme
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 10:01:20 -08:00
|
|
|
PnP_odd:
|
2015-07-22 12:57:02 -07:00
|
|
|
; is definitely odd!
|
2016-01-06 10:01:20 -08:00
|
|
|
text_jump _PnP_odd
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2015-10-09 20:09:03 -07:00
|
|
|
PeoplePlaces6: ; Places
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-22 10:00:35 -08:00
|
|
|
cp (PnP_HiddenPlaces.End - PnP_HiddenPlaces) / 2
|
2015-10-09 20:09:03 -07:00
|
|
|
jr nc, PeoplePlaces6
|
2018-01-10 08:30:12 -08:00
|
|
|
ld hl, PnP_HiddenPlaces
|
2015-07-22 12:57:02 -07:00
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
add hl, bc
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, bc
|
2015-07-22 12:57:02 -07:00
|
|
|
ld b, [hl]
|
|
|
|
inc hl
|
|
|
|
ld c, [hl]
|
|
|
|
call GetWorldMapLocation
|
|
|
|
ld e, a
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall GetLandmarkName
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, PnP_Text5
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE_7
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2018-01-10 08:30:12 -08:00
|
|
|
INCLUDE "data/radio/pnp_hidden_places.asm"
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PnP_Text5:
|
2015-07-22 12:57:02 -07:00
|
|
|
; @ @
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _PnP_Text5
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PeoplePlaces7:
|
2018-01-10 08:57:28 -08:00
|
|
|
; 0-15 are all valid indexes into .Adjectives,
|
|
|
|
; so no need for a retry loop
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-16 14:27:50 -08:00
|
|
|
maskbits NUM_PNP_PLACES_ADJECTIVES
|
2015-07-22 12:57:02 -07:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2018-01-10 08:57:28 -08:00
|
|
|
ld hl, .Adjectives
|
2015-07-22 12:57:02 -07:00
|
|
|
add hl, de
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, de
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
call CopyRadioTextToRAM
|
|
|
|
call Random
|
2015-11-09 20:01:45 -08:00
|
|
|
cp 4 percent
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE
|
|
|
|
jr c, .ok
|
2015-07-22 12:57:02 -07:00
|
|
|
call Random
|
2018-01-10 08:30:12 -08:00
|
|
|
cp 49 percent - 1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, PLACES_AND_PEOPLE_4 ; People
|
|
|
|
jr c, .ok
|
|
|
|
ld a, PLACES_AND_PEOPLE_6 ; Places
|
|
|
|
.ok
|
2015-07-22 12:57:02 -07:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2018-01-10 08:57:28 -08:00
|
|
|
.Adjectives:
|
|
|
|
; there are NUM_PNP_PLACES_ADJECTIVES entries
|
2015-10-09 20:09:03 -07:00
|
|
|
dw PnP_cute
|
|
|
|
dw PnP_lazy
|
|
|
|
dw PnP_happy
|
|
|
|
dw PnP_noisy
|
|
|
|
dw PnP_precocious
|
|
|
|
dw PnP_bold
|
|
|
|
dw PnP_picky
|
|
|
|
dw PnP_sortofok
|
2016-01-06 10:01:20 -08:00
|
|
|
dw PnP_soso
|
|
|
|
dw PnP_great
|
|
|
|
dw PnP_mytype
|
|
|
|
dw PnP_cool
|
2015-10-09 20:09:03 -07:00
|
|
|
dw PnP_inspiring
|
|
|
|
dw PnP_weird
|
|
|
|
dw PnP_rightforme
|
|
|
|
dw PnP_odd
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio1:
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, RocketRadioText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_2
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio2:
|
|
|
|
ld hl, RocketRadioText2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_3
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio3:
|
|
|
|
ld hl, RocketRadioText3
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_4
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio4:
|
|
|
|
ld hl, RocketRadioText4
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_5
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio5:
|
|
|
|
ld hl, RocketRadioText5
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_6
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio6:
|
|
|
|
ld hl, RocketRadioText6
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_7
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio7:
|
|
|
|
ld hl, RocketRadioText7
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_8
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio8:
|
|
|
|
ld hl, RocketRadioText8
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_9
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio9:
|
|
|
|
ld hl, RocketRadioText9
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO_10
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadio10:
|
|
|
|
ld hl, RocketRadioText10
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, ROCKET_RADIO
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; … …Ahem, we are
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; TEAM ROCKET!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText3:
|
2015-07-22 12:57:02 -07:00
|
|
|
; After three years
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText3
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText4:
|
2015-07-22 12:57:02 -07:00
|
|
|
; of preparation, we
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText4
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText5:
|
2015-07-22 12:57:02 -07:00
|
|
|
; have risen again
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText5
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText6:
|
2015-07-22 12:57:02 -07:00
|
|
|
; from the ashes!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText6
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText7:
|
2015-07-22 12:57:02 -07:00
|
|
|
; GIOVANNI! @ Can you
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText7
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText8:
|
2015-07-22 12:57:02 -07:00
|
|
|
; hear?@ We did it!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText8
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText9:
|
2015-07-22 12:57:02 -07:00
|
|
|
; @ Where is our boss?
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText9
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
RocketRadioText10:
|
2015-07-22 12:57:02 -07:00
|
|
|
; @ Is he listening?
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _RocketRadioText10
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
PokeFluteRadio:
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, 1
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
UnownRadio:
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, 1
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
EvolutionRadio:
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, 1
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Determine if we need to be here
|
2015-11-09 20:01:45 -08:00
|
|
|
call BuenasPasswordCheckTime
|
2015-10-09 20:09:03 -07:00
|
|
|
jp nc, .PlayPassword
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, [wNumRadioLinesPrinted]
|
2015-07-22 12:57:02 -07:00
|
|
|
and a
|
|
|
|
jp z, BuenasPassword20
|
|
|
|
jp BuenasPassword8
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.PlayPassword:
|
2015-07-22 12:57:02 -07:00
|
|
|
call StartRadioStation
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hBGMapMode]
|
2015-07-22 12:57:02 -07:00
|
|
|
push af
|
|
|
|
xor a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2016-01-07 14:41:51 -08:00
|
|
|
ld de, BuenasPasswordChannelName
|
2015-07-22 12:57:02 -07:00
|
|
|
hlcoord 2, 9
|
|
|
|
call PlaceString
|
|
|
|
pop af
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BuenaRadioText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_2
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword2:
|
|
|
|
ld hl, BuenaRadioText2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_3
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword3:
|
2015-11-09 20:01:45 -08:00
|
|
|
call BuenasPasswordCheckTime
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BuenaRadioText3
|
2015-07-22 12:57:02 -07:00
|
|
|
jp c, BuenasPasswordAfterMidnight
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_4
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword4:
|
2015-11-09 20:01:45 -08:00
|
|
|
call BuenasPasswordCheckTime
|
2015-07-22 12:57:02 -07:00
|
|
|
jp c, BuenasPassword8
|
2015-10-24 07:34:19 -07:00
|
|
|
ld a, [wBuenasPassword]
|
2015-07-22 12:57:02 -07:00
|
|
|
; If we already generated the password today, we don't need to generate a new one.
|
2018-08-06 10:43:54 -07:00
|
|
|
ld hl, wDailyFlags2
|
|
|
|
bit DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
2015-07-22 12:57:02 -07:00
|
|
|
jr nz, .AlreadyGotIt
|
|
|
|
; There are only 11 groups to choose from.
|
|
|
|
.greater_than_11
|
|
|
|
call Random
|
2018-01-16 14:27:50 -08:00
|
|
|
maskbits NUM_PASSWORD_CATEGORIES
|
2015-11-09 20:01:45 -08:00
|
|
|
cp NUM_PASSWORD_CATEGORIES
|
2015-07-22 12:57:02 -07:00
|
|
|
jr nc, .greater_than_11
|
|
|
|
; Store it in the high nybble of e.
|
|
|
|
swap a
|
|
|
|
ld e, a
|
|
|
|
; For each group, choose one of the three passwords.
|
|
|
|
.greater_than_three
|
|
|
|
call Random
|
2018-01-16 14:27:50 -08:00
|
|
|
maskbits NUM_PASSWORDS_PER_CATEGORY
|
2015-11-09 20:01:45 -08:00
|
|
|
cp NUM_PASSWORDS_PER_CATEGORY
|
2015-07-22 12:57:02 -07:00
|
|
|
jr nc, .greater_than_three
|
2015-10-24 07:34:19 -07:00
|
|
|
; The high nybble of wBuenasPassword will now contain the password group index, and the low nybble contains the actual password.
|
2015-07-22 12:57:02 -07:00
|
|
|
add e
|
2015-10-24 07:34:19 -07:00
|
|
|
ld [wBuenasPassword], a
|
2015-07-22 12:57:02 -07:00
|
|
|
; Set the flag so that we don't generate a new password this week.
|
2018-08-06 10:43:54 -07:00
|
|
|
ld hl, wDailyFlags2
|
|
|
|
set DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
2016-04-10 11:42:14 -07:00
|
|
|
.AlreadyGotIt:
|
2015-07-22 12:57:02 -07:00
|
|
|
ld c, a
|
|
|
|
call GetBuenasPassword
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BuenaRadioText4
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_5
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
GetBuenasPassword:
|
2015-07-22 12:57:02 -07:00
|
|
|
; The password indices are held in c. High nybble contains the group index, low nybble contains the word index.
|
|
|
|
; Load the password group pointer in hl.
|
|
|
|
ld a, c
|
|
|
|
swap a
|
|
|
|
and $f
|
2018-01-10 08:30:12 -08:00
|
|
|
ld hl, BuenasPasswordTable
|
2015-07-22 12:57:02 -07:00
|
|
|
ld d, 0
|
|
|
|
ld e, a
|
|
|
|
add hl, de
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, de
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
; Get the password type and store it in b.
|
|
|
|
ld a, [hli]
|
|
|
|
ld b, a
|
|
|
|
push hl
|
|
|
|
inc hl
|
|
|
|
; Get the password index.
|
|
|
|
ld a, c
|
|
|
|
and $f
|
|
|
|
ld c, a
|
|
|
|
push hl
|
|
|
|
ld hl, .StringFunctionJumpTable
|
|
|
|
ld e, b
|
|
|
|
add hl, de
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, de
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
pop de ; de now contains the pointer to the value of this week's password, in Blue Card Points.
|
|
|
|
call _hl_
|
|
|
|
pop hl
|
|
|
|
ld c, [hl]
|
|
|
|
ret
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.StringFunctionJumpTable:
|
2018-01-10 08:30:12 -08:00
|
|
|
; entries correspond to BUENA_* constants
|
|
|
|
dw .Mon ; BUENA_MON
|
|
|
|
dw .Item ; BUENA_ITEM
|
|
|
|
dw .Move ; BUENA_MOVE
|
|
|
|
dw .RawString ; BUENA_STRING
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.Mon:
|
2015-07-22 12:57:02 -07:00
|
|
|
call .GetTheIndex
|
|
|
|
call GetPokemonName
|
|
|
|
ret
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.Item:
|
2015-07-22 12:57:02 -07:00
|
|
|
call .GetTheIndex
|
|
|
|
call GetItemName
|
|
|
|
ret
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.Move:
|
2015-07-22 12:57:02 -07:00
|
|
|
call .GetTheIndex
|
|
|
|
call GetMoveName
|
|
|
|
ret
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.GetTheIndex:
|
2015-07-22 12:57:02 -07:00
|
|
|
ld h, 0
|
|
|
|
ld l, c
|
|
|
|
add hl, de
|
|
|
|
ld a, [hl]
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.RawString:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Get the string from the table...
|
|
|
|
ld a, c
|
|
|
|
and a
|
|
|
|
jr z, .skip
|
|
|
|
.read_loop
|
|
|
|
ld a, [de]
|
|
|
|
inc de
|
|
|
|
cp "@"
|
|
|
|
jr nz, .read_loop
|
|
|
|
dec c
|
|
|
|
jr nz, .read_loop
|
2018-01-23 14:39:09 -08:00
|
|
|
; ... and copy it into wStringBuffer1.
|
2015-07-22 12:57:02 -07:00
|
|
|
.skip
|
2018-01-23 14:39:09 -08:00
|
|
|
ld hl, wStringBuffer1
|
2015-07-22 12:57:02 -07:00
|
|
|
.copy_loop
|
|
|
|
ld a, [de]
|
|
|
|
inc de
|
|
|
|
ld [hli], a
|
|
|
|
cp "@"
|
|
|
|
jr nz, .copy_loop
|
2018-01-23 14:39:09 -08:00
|
|
|
ld de, wStringBuffer1
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2018-01-10 08:30:12 -08:00
|
|
|
INCLUDE "data/radio/buenas_passwords.asm"
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword5:
|
|
|
|
ld hl, BuenaRadioText5
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_6
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword6:
|
|
|
|
ld hl, BuenaRadioText6
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_7
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword7:
|
2015-11-09 20:01:45 -08:00
|
|
|
call BuenasPasswordCheckTime
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BuenaRadioText7
|
2015-07-22 12:57:02 -07:00
|
|
|
jr c, BuenasPasswordAfterMidnight
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPasswordAfterMidnight:
|
2015-07-22 12:57:02 -07:00
|
|
|
push hl
|
2018-08-06 10:43:54 -07:00
|
|
|
ld hl, wDailyFlags2
|
|
|
|
res DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
2015-07-22 12:57:02 -07:00
|
|
|
pop hl
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_8
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword8:
|
2018-08-06 10:43:54 -07:00
|
|
|
ld hl, wDailyFlags2
|
|
|
|
res DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BuenaRadioMidnightText10
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_9
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword9:
|
|
|
|
ld hl, BuenaRadioMidnightText1
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_10
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword10:
|
|
|
|
ld hl, BuenaRadioMidnightText2
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_11
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword11:
|
|
|
|
ld hl, BuenaRadioMidnightText3
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_12
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword12:
|
|
|
|
ld hl, BuenaRadioMidnightText4
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_13
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword13:
|
|
|
|
ld hl, BuenaRadioMidnightText5
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_14
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword14:
|
|
|
|
ld hl, BuenaRadioMidnightText6
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_15
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword15:
|
|
|
|
ld hl, BuenaRadioMidnightText7
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_16
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword16:
|
|
|
|
ld hl, BuenaRadioMidnightText8
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_17
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword17:
|
|
|
|
ld hl, BuenaRadioMidnightText9
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_18
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword18:
|
|
|
|
ld hl, BuenaRadioMidnightText10
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_19
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword19:
|
|
|
|
ld hl, BuenaRadioMidnightText10
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_20
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword20:
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hBGMapMode]
|
2015-07-22 12:57:02 -07:00
|
|
|
push af
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall NoRadioMusic
|
|
|
|
farcall NoRadioName
|
2015-07-22 12:57:02 -07:00
|
|
|
pop af
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2018-08-06 10:43:54 -07:00
|
|
|
ld hl, wDailyFlags2
|
|
|
|
res DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, BUENAS_PASSWORD
|
2018-09-09 12:09:51 -07:00
|
|
|
ld [wCurRadioLine], a
|
2015-07-22 12:57:02 -07:00
|
|
|
xor a
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BuenaOffTheAirText
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_21
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPassword21:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, BUENAS_PASSWORD
|
2018-09-09 12:09:51 -07:00
|
|
|
ld [wCurRadioLine], a
|
2015-07-22 12:57:02 -07:00
|
|
|
xor a
|
2015-11-09 20:01:45 -08:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
|
|
|
call BuenasPasswordCheckTime
|
2015-07-22 12:57:02 -07:00
|
|
|
jp nc, BuenasPassword1
|
2016-01-07 14:41:51 -08:00
|
|
|
ld hl, BuenaOffTheAirText
|
2015-10-09 20:09:03 -07:00
|
|
|
ld a, BUENAS_PASSWORD_21
|
2015-07-22 12:57:02 -07:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPasswordCheckTime:
|
2015-07-22 12:57:02 -07:00
|
|
|
call UpdateTime
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hHours]
|
2017-12-11 09:20:01 -08:00
|
|
|
cp NITE_HOUR
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenasPasswordChannelName:
|
2015-07-22 12:57:02 -07:00
|
|
|
db "BUENA'S PASSWORD@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; BUENA: BUENA here!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioText2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Today's password!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioText2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioText3:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Let me think… It's
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioText3
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioText4:
|
2015-07-22 12:57:02 -07:00
|
|
|
; @ !
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioText4
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioText5:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Don't forget it!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioText5
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioText6:
|
2015-07-22 12:57:02 -07:00
|
|
|
; I'm in GOLDENROD's
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioText6
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioText7:
|
2015-07-22 12:57:02 -07:00
|
|
|
; RADIO TOWER!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioText7
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText1:
|
2015-07-22 12:57:02 -07:00
|
|
|
; BUENA: Oh my…
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText1
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText2:
|
2015-07-22 12:57:02 -07:00
|
|
|
; It's midnight! I
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText2
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText3:
|
2015-07-22 12:57:02 -07:00
|
|
|
; have to shut down!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText3
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText4:
|
2015-07-22 12:57:02 -07:00
|
|
|
; Thanks for tuning
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText4
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText5:
|
2015-07-22 12:57:02 -07:00
|
|
|
; in to the end! But
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText5
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText6:
|
2015-07-22 12:57:02 -07:00
|
|
|
; don't stay up too
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText6
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText7:
|
2015-07-22 12:57:02 -07:00
|
|
|
; late! Presented to
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText7
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText8:
|
2015-07-22 12:57:02 -07:00
|
|
|
; you by DJ BUENA!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText8
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText9:
|
2015-07-22 12:57:02 -07:00
|
|
|
; I'm outta here!
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText9
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaRadioMidnightText10:
|
2015-07-22 12:57:02 -07:00
|
|
|
; …
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaRadioMidnightText10
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
BuenaOffTheAirText:
|
2015-07-22 12:57:02 -07:00
|
|
|
;
|
2016-01-07 14:41:51 -08:00
|
|
|
text_jump _BuenaOffTheAirText
|
2015-07-22 12:57:02 -07:00
|
|
|
db "@"
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
CopyRadioTextToRAM:
|
2015-07-22 12:57:02 -07:00
|
|
|
ld a, [hl]
|
|
|
|
cp TX_FAR
|
2015-11-09 20:01:45 -08:00
|
|
|
jp z, FarCopyRadioText
|
|
|
|
ld de, wRadioText
|
2015-07-22 12:57:02 -07:00
|
|
|
ld bc, SCREEN_WIDTH * 2
|
|
|
|
jp CopyBytes
|
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
StartRadioStation:
|
2015-11-09 20:01:45 -08:00
|
|
|
ld a, [wNumRadioLinesPrinted]
|
2015-07-22 12:57:02 -07:00
|
|
|
and a
|
|
|
|
ret nz
|
|
|
|
call RadioTerminator
|
|
|
|
call PrintText
|
|
|
|
ld hl, RadioChannelSongs
|
2018-09-09 12:09:51 -07:00
|
|
|
ld a, [wCurRadioLine]
|
2015-07-22 12:57:02 -07:00
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
add hl, bc
|
2016-01-07 14:41:51 -08:00
|
|
|
add hl, bc
|
2015-07-22 12:57:02 -07:00
|
|
|
ld e, [hl]
|
|
|
|
inc hl
|
|
|
|
ld d, [hl]
|
2017-12-24 09:47:30 -08:00
|
|
|
callfar RadioMusicRestartDE
|
2015-07-22 12:57:02 -07:00
|
|
|
ret
|
|
|
|
|
2018-01-10 08:30:12 -08:00
|
|
|
INCLUDE "data/radio/channel_music.asm"
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-01-07 14:41:51 -08:00
|
|
|
NextRadioLine:
|
2015-07-22 12:57:02 -07:00
|
|
|
push af
|
|
|
|
call CopyRadioTextToRAM
|
|
|
|
pop af
|
|
|
|
jp PrintRadioLine
|