2015-07-22 19:57:02 +00:00
|
|
|
PlayRadioShow: ; b8612
|
|
|
|
; If we're already in the radio program proper, we don't need to be here.
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wCurrentRadioLine]
|
|
|
|
cp POKE_FLUTE_RADIO
|
2015-07-22 19:57:02 +00:00
|
|
|
jr nc, .ok
|
|
|
|
; If Team Rocket is not occupying the radio tower, we don't need to be here.
|
|
|
|
ld a, [StatusFlags2]
|
|
|
|
bit 0, a ; checkflag ENGINE_ROCKETS_IN_RADIO_TOWER
|
|
|
|
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-10 04:01:45 +00:00
|
|
|
ld a, ROCKET_RADIO
|
|
|
|
ld [wCurrentRadioLine], a
|
2015-07-22 19:57:02 +00:00
|
|
|
.ok
|
2015-11-10 04:01:45 +00:00
|
|
|
; Jump to the currently loaded station. The index to which we need to jump is in wCurrentRadioLine.
|
|
|
|
ld a, [wCurrentRadioLine]
|
2015-07-22 19:57:02 +00:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
ld hl, RadioJumptable
|
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
jp [hl]
|
|
|
|
|
|
|
|
RadioJumptable: ; b863a (2e:463a)
|
|
|
|
dw OaksPkmnTalk1 ; $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-10 03:09:03 +00:00
|
|
|
dw UnownRadio ; $09
|
|
|
|
dw EvolutionRadio ; $0a
|
2015-07-22 19:57:02 +00: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-10 03:09:03 +00:00
|
|
|
dw PokedexShow2 ; $13
|
|
|
|
dw PokedexShow3 ; $14
|
|
|
|
dw PokedexShow4 ; $15
|
|
|
|
dw PokedexShow5 ; $16
|
2015-07-22 19:57:02 +00: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-10 03:09:03 +00:00
|
|
|
; People & Places
|
|
|
|
dw PeoplePlaces2 ; $2c
|
|
|
|
dw PeoplePlaces3 ; $2d
|
|
|
|
dw PeoplePlaces4 ; $2e
|
|
|
|
dw PeoplePlaces5 ; $2f
|
|
|
|
dw PeoplePlaces6 ; $30
|
|
|
|
dw PeoplePlaces7 ; $31
|
2015-07-22 19:57:02 +00: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
|
2015-10-10 03:09:03 +00:00
|
|
|
dw OaksPkmnTalk10 ; $3b
|
|
|
|
dw OaksPkmnTalk11 ; $3c
|
|
|
|
dw OaksPkmnTalk12 ; $3d
|
|
|
|
dw OaksPkmnTalk13 ; $3e
|
|
|
|
dw OaksPkmnTalk14 ; $3f
|
2015-07-22 19:57:02 +00: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-10 03:09:03 +00:00
|
|
|
dw PokedexShow6 ; $55
|
|
|
|
dw PokedexShow7 ; $56
|
|
|
|
dw PokedexShow8 ; $57
|
2015-07-22 19:57:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
PrintRadioLine: ; b86ea (2e:46ea)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNextRadioLine], a
|
|
|
|
ld hl, wRadioText
|
|
|
|
ld a, [wNumRadioLinesPrinted]
|
|
|
|
cp 2
|
2015-07-22 19:57:02 +00:00
|
|
|
jr nc, .print
|
|
|
|
inc hl
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [hl], "<START>"
|
2015-07-22 19:57:02 +00:00
|
|
|
inc a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
|
|
|
cp 2
|
2015-07-22 19:57:02 +00:00
|
|
|
jr nz, .print
|
|
|
|
bccoord 1, 16
|
|
|
|
call PlaceWholeStringInBoxAtOnce
|
|
|
|
jr .skip
|
|
|
|
.print
|
|
|
|
call PrintTextBoxText
|
|
|
|
.skip
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, RADIO_SCROLL
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wCurrentRadioLine], a
|
2015-10-10 21:03:04 +00:00
|
|
|
ld a, 100
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wRadioTextDelay], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
; b8718 (2e:4718)
|
|
|
|
|
2015-10-10 21:03:04 +00:00
|
|
|
ReplacePeriodsWithSpaces: ; b8718
|
2015-07-22 19:57:02 +00:00
|
|
|
push hl
|
|
|
|
ld b, SCREEN_WIDTH * 2
|
2015-10-10 03:09:03 +00:00
|
|
|
.loop
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, [hl]
|
|
|
|
cp "."
|
|
|
|
jr nz, .next
|
|
|
|
ld [hl], " "
|
|
|
|
|
|
|
|
.next
|
|
|
|
inc hl
|
|
|
|
dec b
|
2015-10-10 03:09:03 +00:00
|
|
|
jr nz, .loop
|
2015-07-22 19:57:02 +00:00
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
; b8728
|
|
|
|
|
|
|
|
RadioScroll: ; b8728 (2e:4728)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, [hl]
|
|
|
|
and a
|
|
|
|
jr z, .proceed
|
|
|
|
dec [hl]
|
|
|
|
ret
|
|
|
|
.proceed
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wNextRadioLine]
|
|
|
|
ld [wCurrentRadioLine], a
|
|
|
|
ld a, [wNumRadioLinesPrinted]
|
2015-07-22 19:57:02 +00:00
|
|
|
cp 1
|
|
|
|
call nz, CopyBottomLineToTopLine
|
|
|
|
jp ClearBottomLine
|
|
|
|
|
|
|
|
OaksPkmnTalk1: ; b8742 (2e:4742)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, 5
|
|
|
|
ld [wOaksPkmnTalkSegmentCounter], a
|
2015-07-22 19:57:02 +00:00
|
|
|
call StartRadioStation
|
|
|
|
ld hl, UnknownText_0xb8820
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_2
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
OaksPkmnTalk2: ; b8752 (2e:4752)
|
|
|
|
ld hl, UnknownText_0xb8825
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_3
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
OaksPkmnTalk3: ; b875a (2e:475a)
|
|
|
|
ld hl, UnknownText_0xb882a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_4
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
OaksPkmnTalk4: ; b8762 (2e:4762)
|
2015-10-10 03:09:03 +00:00
|
|
|
; Choose a random route, and a random Pokemon from that route.
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
|
|
|
and $1f
|
|
|
|
cp $f
|
|
|
|
jr nc, OaksPkmnTalk4
|
2015-10-10 03:09:03 +00:00
|
|
|
; We now have a number between 0 and 14.
|
|
|
|
ld hl, .routes
|
2015-07-22 19:57:02 +00:00
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
rept 2
|
|
|
|
add hl, bc
|
|
|
|
endr
|
|
|
|
ld b, [hl]
|
|
|
|
inc hl
|
|
|
|
ld c, [hl]
|
2015-10-10 03:09:03 +00:00
|
|
|
; bc now contains the chosen map's group and number indices.
|
2015-07-22 19:57:02 +00:00
|
|
|
push bc
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
; Search the JohtoGrassWildMons array for the chosen map.
|
2015-07-23 07:41:52 +00:00
|
|
|
ld hl, JohtoGrassWildMons
|
2015-10-10 03:09:03 +00:00
|
|
|
.loop
|
2015-07-23 07:41:52 +00:00
|
|
|
ld a, BANK(JohtoGrassWildMons)
|
2015-07-22 19:57:02 +00:00
|
|
|
call GetFarByte
|
|
|
|
cp -1
|
2015-10-10 03:09:03 +00:00
|
|
|
jr z, .overflow
|
2015-07-22 19:57:02 +00:00
|
|
|
inc hl
|
|
|
|
cp b
|
|
|
|
jr nz, .next
|
2015-07-23 07:41:52 +00:00
|
|
|
ld a, BANK(JohtoGrassWildMons)
|
2015-07-22 19:57:02 +00:00
|
|
|
call GetFarByte
|
|
|
|
cp c
|
|
|
|
jr z, .done
|
|
|
|
.next
|
|
|
|
dec hl
|
2015-10-10 03:09:03 +00:00
|
|
|
ld de, WILDMON_GRASS_STRUCTURE_LENGTH
|
2015-07-22 19:57:02 +00:00
|
|
|
add hl, de
|
2015-10-10 03:09:03 +00:00
|
|
|
jr .loop
|
2015-07-22 19:57:02 +00:00
|
|
|
|
|
|
|
.done
|
|
|
|
rept 4
|
|
|
|
inc hl
|
|
|
|
endr
|
2015-10-10 03:09:03 +00:00
|
|
|
; Generate a number, either 0, 1, or 2, to choose a time of day.
|
|
|
|
.loop2
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
|
|
|
and 3
|
|
|
|
cp 3
|
2015-10-10 03:09:03 +00:00
|
|
|
jr z, .loop2
|
2015-07-22 19:57:02 +00:00
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
ld bc, 2 * NUM_WILDMONS_PER_AREA_TIME_OF_DAY
|
2015-07-22 19:57:02 +00:00
|
|
|
call AddNTimes
|
2015-10-10 03:09:03 +00:00
|
|
|
.loop3
|
|
|
|
; Choose one of the middle three Pokemon.
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
2015-10-10 03:09:03 +00:00
|
|
|
and NUM_WILDMONS_PER_AREA_TIME_OF_DAY
|
2015-07-22 19:57:02 +00:00
|
|
|
cp 2
|
2015-10-10 03:09:03 +00:00
|
|
|
jr c, .loop3
|
2015-07-22 19:57:02 +00:00
|
|
|
cp 5
|
2015-10-10 03:09:03 +00:00
|
|
|
jr nc, .loop3
|
2015-07-22 19:57:02 +00:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
2015-10-10 03:09:03 +00:00
|
|
|
inc hl ; skip level
|
2015-07-23 07:41:52 +00:00
|
|
|
ld a, BANK(JohtoGrassWildMons)
|
2015-07-22 19:57:02 +00:00
|
|
|
call GetFarByte
|
2015-10-10 03:09:03 +00:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ld [CurPartySpecies], a
|
|
|
|
call GetPokemonName
|
|
|
|
ld hl, StringBuffer1
|
2015-12-19 01:07:09 +00:00
|
|
|
ld de, wMonOrItemNameBuffer
|
2015-10-10 03:09:03 +00:00
|
|
|
ld bc, PKMN_NAME_LENGTH
|
2015-07-22 19:57:02 +00:00
|
|
|
call CopyBytes
|
2015-10-10 03:09:03 +00:00
|
|
|
; Now that we've chosen our wild Pokemon,
|
|
|
|
; let's recover the map index info and get its name.
|
2015-07-22 19:57:02 +00:00
|
|
|
pop bc
|
|
|
|
call GetWorldMapLocation
|
|
|
|
ld e, a
|
|
|
|
callba GetLandmarkName
|
|
|
|
ld hl, UnknownText_0xb882f
|
|
|
|
call CopyRadioTextToRAM
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_5
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.overflow
|
2015-07-22 19:57:02 +00:00
|
|
|
pop bc
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
; b87f2 (2e:47f2)
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.routes: ; b87f2
|
2015-07-22 19:57:02 +00:00
|
|
|
map ROUTE_29
|
|
|
|
map ROUTE_46
|
|
|
|
map ROUTE_30
|
|
|
|
map ROUTE_32
|
|
|
|
map ROUTE_34
|
|
|
|
map ROUTE_35
|
|
|
|
map ROUTE_37
|
|
|
|
map ROUTE_38
|
|
|
|
map ROUTE_39
|
|
|
|
map ROUTE_42
|
|
|
|
map ROUTE_43
|
|
|
|
map ROUTE_44
|
|
|
|
map ROUTE_45
|
|
|
|
map ROUTE_36
|
|
|
|
map ROUTE_31
|
|
|
|
; b8810
|
|
|
|
|
|
|
|
OaksPkmnTalk5: ; b8810 (2e:4810)
|
|
|
|
ld hl, UnknownText_0xb8834
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_6
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
OaksPkmnTalk6: ; b8818 (2e:4818)
|
|
|
|
ld hl, UnknownText_0xb8839
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_7
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b8820 (2e:4820)
|
|
|
|
|
|
|
|
UnknownText_0xb8820: ; 0xb8820
|
|
|
|
; MARY: PROF.OAK'S
|
|
|
|
text_jump UnknownText_0x1bc81a
|
|
|
|
db "@"
|
|
|
|
; 0xb8825
|
|
|
|
|
|
|
|
UnknownText_0xb8825: ; 0xb8825
|
|
|
|
; #MON TALK!
|
|
|
|
text_jump UnknownText_0x1bc82d
|
|
|
|
db "@"
|
|
|
|
; 0xb882a
|
|
|
|
|
|
|
|
UnknownText_0xb882a: ; 0xb882a
|
|
|
|
; With me, MARY!
|
|
|
|
text_jump UnknownText_0x1bc83a
|
|
|
|
db "@"
|
|
|
|
; 0xb882f
|
|
|
|
|
|
|
|
UnknownText_0xb882f: ; 0xb882f
|
|
|
|
; OAK: @ @
|
|
|
|
text_jump UnknownText_0x1bc84b
|
|
|
|
db "@"
|
|
|
|
; 0xb8834
|
|
|
|
|
|
|
|
UnknownText_0xb8834: ; 0xb8834
|
|
|
|
; may be seen around
|
|
|
|
text_jump UnknownText_0x1bc858
|
|
|
|
db "@"
|
|
|
|
; 0xb8839
|
|
|
|
|
|
|
|
UnknownText_0xb8839: ; 0xb8839
|
|
|
|
; @ .
|
|
|
|
text_jump UnknownText_0x1bc86d
|
|
|
|
db "@"
|
|
|
|
; 0xb883e
|
|
|
|
|
|
|
|
OaksPkmnTalk7: ; b883e (2e:483e)
|
|
|
|
ld a, [CurPartySpecies]
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-07-22 19:57:02 +00:00
|
|
|
call GetPokemonName
|
|
|
|
ld hl, UnknownText_0xb884f
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_8
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b884f (2e:484f)
|
|
|
|
|
|
|
|
UnknownText_0xb884f: ; 0xb884f
|
|
|
|
; MARY: @ 's
|
|
|
|
text_jump UnknownText_0x1bc876
|
|
|
|
db "@"
|
|
|
|
; 0xb8854
|
|
|
|
|
|
|
|
OaksPkmnTalk8: ; b8854 (2e:4854)
|
|
|
|
call Random
|
|
|
|
and $f
|
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2015-10-10 21:03:04 +00:00
|
|
|
ld hl, .Descriptors
|
2015-07-22 19:57:02 +00:00
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_9
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b8869 (2e:4869)
|
|
|
|
|
2015-10-10 21:03:04 +00:00
|
|
|
.Descriptors: ; b8869
|
2015-10-10 03:09:03 +00: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 19:57:02 +00:00
|
|
|
; b8889
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.sweetadorably: ; 0xb8889
|
2015-07-22 19:57:02 +00:00
|
|
|
; sweet and adorably
|
|
|
|
text_jump UnknownText_0x1bc885
|
|
|
|
db "@"
|
|
|
|
; 0xb888e
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.wigglyslickly: ; 0xb888e
|
2015-07-22 19:57:02 +00:00
|
|
|
; wiggly and slickly
|
|
|
|
text_jump UnknownText_0x1bc89a
|
|
|
|
db "@"
|
|
|
|
; 0xb8893
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.aptlynamed: ; 0xb8893
|
2015-07-22 19:57:02 +00:00
|
|
|
; aptly named and
|
|
|
|
text_jump UnknownText_0x1bc8af
|
|
|
|
db "@"
|
|
|
|
; 0xb8898
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.undeniablykindof: ; 0xb8898
|
2015-07-22 19:57:02 +00:00
|
|
|
; undeniably kind of
|
|
|
|
text_jump UnknownText_0x1bc8c1
|
|
|
|
db "@"
|
|
|
|
; 0xb889d
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.unbearably: ; 0xb889d
|
2015-07-22 19:57:02 +00:00
|
|
|
; so, so unbearably
|
|
|
|
text_jump UnknownText_0x1bc8d6
|
|
|
|
db "@"
|
|
|
|
; 0xb88a2
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.wowimpressively: ; 0xb88a2
|
2015-07-22 19:57:02 +00:00
|
|
|
; wow, impressively
|
|
|
|
text_jump UnknownText_0x1bc8ea
|
|
|
|
db "@"
|
|
|
|
; 0xb88a7
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.almostpoisonously: ; 0xb88a7
|
2015-07-22 19:57:02 +00:00
|
|
|
; almost poisonously
|
|
|
|
text_jump UnknownText_0x1bc8fe
|
|
|
|
db "@"
|
|
|
|
; 0xb88ac
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.sensually: ; 0xb88ac
|
2015-07-22 19:57:02 +00:00
|
|
|
; ooh, so sensually
|
|
|
|
text_jump UnknownText_0x1bc913
|
|
|
|
db "@"
|
|
|
|
; 0xb88b1
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.mischievously: ; 0xb88b1
|
2015-07-22 19:57:02 +00:00
|
|
|
; so mischievously
|
|
|
|
text_jump UnknownText_0x1bc927
|
|
|
|
db "@"
|
|
|
|
; 0xb88b6
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.topically: ; 0xb88b6
|
2015-07-22 19:57:02 +00:00
|
|
|
; so very topically
|
|
|
|
text_jump UnknownText_0x1bc93a
|
|
|
|
db "@"
|
|
|
|
; 0xb88bb
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.addictively: ; 0xb88bb
|
2015-07-22 19:57:02 +00:00
|
|
|
; sure addictively
|
|
|
|
text_jump UnknownText_0x1bc94e
|
|
|
|
db "@"
|
|
|
|
; 0xb88c0
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.looksinwater: ; 0xb88c0
|
2015-07-22 19:57:02 +00:00
|
|
|
; looks in water is
|
|
|
|
text_jump UnknownText_0x1bc961
|
|
|
|
db "@"
|
|
|
|
; 0xb88c5
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.evolutionmustbe: ; 0xb88c5
|
2015-07-22 19:57:02 +00:00
|
|
|
; evolution must be
|
|
|
|
text_jump UnknownText_0x1bc975
|
|
|
|
db "@"
|
|
|
|
; 0xb88ca
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.provocatively: ; 0xb88ca
|
2015-07-22 19:57:02 +00:00
|
|
|
; provocatively
|
|
|
|
text_jump UnknownText_0x1bc989
|
|
|
|
db "@"
|
|
|
|
; 0xb88cf
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.flippedout: ; 0xb88cf
|
2015-07-22 19:57:02 +00:00
|
|
|
; so flipped out and
|
|
|
|
text_jump UnknownText_0x1bc999
|
|
|
|
db "@"
|
|
|
|
; 0xb88d4
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.heartmeltingly: ; 0xb88d4
|
2015-07-22 19:57:02 +00:00
|
|
|
; heart-meltingly
|
|
|
|
text_jump UnknownText_0x1bc9ae
|
|
|
|
db "@"
|
|
|
|
; 0xb88d9
|
|
|
|
|
|
|
|
OaksPkmnTalk9: ; b88d9 (2e:48d9)
|
|
|
|
call Random
|
|
|
|
and $f
|
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2015-10-10 21:03:04 +00:00
|
|
|
ld hl, .Descriptors
|
2015-07-22 19:57:02 +00:00
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wOaksPkmnTalkSegmentCounter]
|
2015-07-22 19:57:02 +00:00
|
|
|
dec a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wOaksPkmnTalkSegmentCounter], a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_4
|
|
|
|
jr nz, .ok
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, 5
|
|
|
|
ld [wOaksPkmnTalkSegmentCounter], a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_10
|
|
|
|
.ok
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b88fe (2e:48fe)
|
|
|
|
|
2015-10-10 21:03:04 +00:00
|
|
|
.Descriptors: ; b88fe
|
2015-10-10 03:09:03 +00: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 19:57:02 +00:00
|
|
|
; b891e
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.cute: ; 0xb891e
|
2015-07-22 19:57:02 +00:00
|
|
|
; cute.
|
|
|
|
text_jump UnknownText_0x1bc9c0
|
|
|
|
db "@"
|
|
|
|
; 0xb8923
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.weird: ; 0xb8923
|
2015-07-22 19:57:02 +00:00
|
|
|
; weird.
|
|
|
|
text_jump UnknownText_0x1bc9c8
|
|
|
|
db "@"
|
|
|
|
; 0xb8928
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.pleasant: ; 0xb8928
|
2015-07-22 19:57:02 +00:00
|
|
|
; pleasant.
|
|
|
|
text_jump UnknownText_0x1bc9d1
|
|
|
|
db "@"
|
|
|
|
; 0xb892d
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.boldsortof: ; 0xb892d
|
2015-07-22 19:57:02 +00:00
|
|
|
; bold, sort of.
|
|
|
|
text_jump UnknownText_0x1bc9dd
|
|
|
|
db "@"
|
|
|
|
; 0xb8932
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.frightening: ; 0xb8932
|
2015-07-22 19:57:02 +00:00
|
|
|
; frightening.
|
|
|
|
text_jump UnknownText_0x1bc9ee
|
|
|
|
db "@"
|
|
|
|
; 0xb8937
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.suavedebonair: ; 0xb8937
|
2015-07-22 19:57:02 +00:00
|
|
|
; suave & debonair!
|
|
|
|
text_jump UnknownText_0x1bc9fd
|
|
|
|
db "@"
|
|
|
|
; 0xb893c
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.powerful: ; 0xb893c
|
2015-07-22 19:57:02 +00:00
|
|
|
; powerful.
|
|
|
|
text_jump UnknownText_0x1bca11
|
|
|
|
db "@"
|
|
|
|
; 0xb8941
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.exciting: ; 0xb8941
|
2015-07-22 19:57:02 +00:00
|
|
|
; exciting.
|
|
|
|
text_jump UnknownText_0x1bca1d
|
|
|
|
db "@"
|
|
|
|
; 0xb8946
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.groovy: ; 0xb8946
|
2015-07-22 19:57:02 +00:00
|
|
|
; groovy!
|
|
|
|
text_jump UnknownText_0x1bca29
|
|
|
|
db "@"
|
|
|
|
; 0xb894b
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.inspiring: ; 0xb894b
|
2015-07-22 19:57:02 +00:00
|
|
|
; inspiring.
|
|
|
|
text_jump UnknownText_0x1bca33
|
|
|
|
db "@"
|
|
|
|
; 0xb8950
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.friendly: ; 0xb8950
|
2015-07-22 19:57:02 +00:00
|
|
|
; friendly.
|
|
|
|
text_jump UnknownText_0x1bca40
|
|
|
|
db "@"
|
|
|
|
; 0xb8955
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.hothothot: ; 0xb8955
|
2015-07-22 19:57:02 +00:00
|
|
|
; hot, hot, hot!
|
|
|
|
text_jump UnknownText_0x1bca4c
|
|
|
|
db "@"
|
|
|
|
; 0xb895a
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.stimulating: ; 0xb895a
|
2015-07-22 19:57:02 +00:00
|
|
|
; stimulating.
|
|
|
|
text_jump UnknownText_0x1bca5d
|
|
|
|
db "@"
|
|
|
|
; 0xb895f
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.guarded: ; 0xb895f
|
2015-07-22 19:57:02 +00:00
|
|
|
; guarded.
|
|
|
|
text_jump UnknownText_0x1bca6c
|
|
|
|
db "@"
|
|
|
|
; 0xb8964
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.lovely: ; 0xb8964
|
2015-07-22 19:57:02 +00:00
|
|
|
; lovely.
|
|
|
|
text_jump UnknownText_0x1bca77
|
|
|
|
db "@"
|
|
|
|
; 0xb8969
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.speedy: ; 0xb8969
|
2015-07-22 19:57:02 +00:00
|
|
|
; speedy.
|
|
|
|
text_jump UnknownText_0x1bca81
|
|
|
|
db "@"
|
|
|
|
; 0xb896e
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
OaksPkmnTalk10: ; b896e (2e:496e)
|
|
|
|
callba RadioMusicRestartPokemonChannel
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb8993
|
|
|
|
call PrintText
|
|
|
|
call WaitBGMap
|
|
|
|
ld hl, UnknownText_0xb898e
|
|
|
|
call PrintText
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_11
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wCurrentRadioLine], a
|
2015-10-10 21:03:04 +00:00
|
|
|
ld a, 100
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wRadioTextDelay], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
; b898e (2e:498e)
|
|
|
|
|
|
|
|
UnknownText_0xb898e: ; 0xb898e
|
|
|
|
; #MON
|
|
|
|
text_jump UnknownText_0x1bca8b
|
|
|
|
db "@"
|
|
|
|
; 0xb8993
|
|
|
|
|
|
|
|
UnknownText_0xb8993: ; 0xb8993
|
|
|
|
db "@"
|
|
|
|
; 0xb8994
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
OaksPkmnTalk11: ; b8994 (2e:4994)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 19:57:02 +00:00
|
|
|
dec [hl]
|
|
|
|
ret nz
|
|
|
|
hlcoord 9, 14
|
2015-10-10 03:09:03 +00:00
|
|
|
ld de, .pokemon_string
|
|
|
|
ld a, OAKS_POKEMON_TALK_12
|
|
|
|
jp PlaceRadioString
|
2015-07-22 19:57:02 +00:00
|
|
|
; b89a4 (2e:49a4)
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.pokemon_string:
|
2015-07-22 19:57:02 +00:00
|
|
|
db "#MON@"
|
|
|
|
; b89a9
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
OaksPkmnTalk12: ; b89a9 (2e:49a9)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 19:57:02 +00:00
|
|
|
dec [hl]
|
|
|
|
ret nz
|
|
|
|
hlcoord 1, 16
|
2015-10-10 03:09:03 +00:00
|
|
|
ld de, .pokemon_channel_string
|
|
|
|
ld a, OAKS_POKEMON_TALK_13
|
|
|
|
jp PlaceRadioString
|
2015-07-22 19:57:02 +00:00
|
|
|
; b89b9 (2e:49b9)
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.pokemon_channel_string:
|
2015-07-22 19:57:02 +00:00
|
|
|
db "#MON Channel@"
|
|
|
|
; b89c6
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
OaksPkmnTalk13: ; b89c6 (2e:49c6)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 19:57:02 +00:00
|
|
|
dec [hl]
|
|
|
|
ret nz
|
|
|
|
hlcoord 12, 16
|
2015-10-10 03:09:03 +00:00
|
|
|
ld de, .terminator
|
|
|
|
ld a, OAKS_POKEMON_TALK_14
|
|
|
|
jp PlaceRadioString
|
2015-07-22 19:57:02 +00:00
|
|
|
; b89d6 (2e:49d6)
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.terminator:
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
; b89d7
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
OaksPkmnTalk14: ; b89d7 (2e:49d7)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld hl, wRadioTextDelay
|
2015-07-22 19:57:02 +00:00
|
|
|
dec [hl]
|
|
|
|
ret nz
|
|
|
|
ld de, $1d
|
2015-10-10 03:09:03 +00:00
|
|
|
callab RadioMusicRestartDE
|
|
|
|
ld hl, .terminator
|
2015-07-22 19:57:02 +00:00
|
|
|
call PrintText
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, OAKS_POKEMON_TALK_4
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNextRadioLine], a
|
2015-07-22 19:57:02 +00:00
|
|
|
xor a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, RADIO_SCROLL
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wCurrentRadioLine], a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, 10
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wRadioTextDelay], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
; b89ff (2e:49ff)
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.terminator: ; 0xb89ff
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
; 0xb8a00
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PlaceRadioString: ; b8a00 (2e:4a00)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wCurrentRadioLine], a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, 100
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wRadioTextDelay], a
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PlaceString
|
|
|
|
|
|
|
|
CopyBottomLineToTopLine: ; b8a0b (2e:4a0b)
|
|
|
|
hlcoord 0, 15
|
|
|
|
decoord 0, 13
|
|
|
|
ld bc, SCREEN_WIDTH * 2
|
|
|
|
jp CopyBytes
|
|
|
|
|
|
|
|
ClearBottomLine: ; b8a17 (2e:4a17)
|
|
|
|
hlcoord 1, 15
|
2015-11-10 04:01:45 +00:00
|
|
|
ld bc, SCREEN_WIDTH - 2
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
|
|
|
hlcoord 1, 16
|
2015-11-10 04:01:45 +00:00
|
|
|
ld bc, SCREEN_WIDTH - 2
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, " "
|
|
|
|
jp ByteFill
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PokedexShow_GetDexEntryBank: ; b8a2d (2e:4a2d)
|
2015-07-22 19:57:02 +00:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
ld a, [CurPartySpecies]
|
|
|
|
dec a
|
|
|
|
rlca
|
|
|
|
rlca
|
|
|
|
and 3
|
|
|
|
ld hl, .pokedexbanks
|
|
|
|
ld d, 0
|
|
|
|
ld e, a
|
|
|
|
add hl, de
|
|
|
|
ld a, [hl]
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
; b8a42 (2e:4a42)
|
|
|
|
|
|
|
|
.pokedexbanks
|
|
|
|
db BANK(PokedexEntries1)
|
|
|
|
db BANK(PokedexEntries2)
|
|
|
|
db BANK(PokedexEntries3)
|
|
|
|
db BANK(PokedexEntries4)
|
|
|
|
; b8a46
|
|
|
|
|
|
|
|
PokedexShow1: ; b8a46 (2e:4a46)
|
|
|
|
call StartRadioStation
|
2015-10-10 03:09:03 +00:00
|
|
|
.loop
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
2015-11-10 04:01:45 +00:00
|
|
|
cp NUM_POKEMON
|
2015-10-10 03:09:03 +00:00
|
|
|
jr nc, .loop
|
2015-07-22 19:57:02 +00:00
|
|
|
ld c, a
|
|
|
|
push bc
|
|
|
|
ld a, c
|
|
|
|
call CheckCaughtMon
|
|
|
|
pop bc
|
2015-10-10 03:09:03 +00:00
|
|
|
jr z, .loop
|
2015-07-22 19:57:02 +00:00
|
|
|
inc c
|
|
|
|
ld a, c
|
|
|
|
ld [CurPartySpecies], a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-07-22 19:57:02 +00:00
|
|
|
call GetPokemonName
|
|
|
|
ld hl, UnknownText_0xb8b30
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, POKEDEX_SHOW_2
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PokedexShow2: ; b8a6c (2e:4a6c)
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, [CurPartySpecies]
|
|
|
|
dec a
|
|
|
|
ld hl, PokedexDataPointerTable
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
rept 2
|
|
|
|
add hl, bc
|
|
|
|
endr
|
|
|
|
ld a, BANK(PokedexDataPointerTable)
|
|
|
|
call GetFarHalfword
|
2015-10-10 03:09:03 +00:00
|
|
|
call PokedexShow_GetDexEntryBank
|
2015-07-22 19:57:02 +00:00
|
|
|
push af
|
|
|
|
push hl
|
2015-10-10 03:09:03 +00:00
|
|
|
call CopyDexEntryPart1
|
2015-07-22 19:57:02 +00:00
|
|
|
dec hl
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [hl], "<DONE>"
|
|
|
|
ld hl, wPokedexShowPointerAddr
|
2015-07-22 19:57:02 +00:00
|
|
|
call CopyRadioTextToRAM
|
|
|
|
pop hl
|
|
|
|
pop af
|
2015-10-10 03:09:03 +00:00
|
|
|
call CopyDexEntryPart2
|
2015-07-22 19:57:02 +00:00
|
|
|
rept 4
|
|
|
|
inc hl
|
|
|
|
endr
|
|
|
|
ld a, l
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wPokedexShowPointerAddr], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, h
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wPokedexShowPointerAddr + 1], a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, POKEDEX_SHOW_3
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PokedexShow3: ; b8aa4 (2e:4aa4)
|
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_4
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PokedexShow4: ; b8aac (2e:4aac)
|
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_5
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PokedexShow5: ; b8ab4 (2e:4ab4)
|
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_6
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PokedexShow6: ; b8abc (2e:4abc)
|
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_7
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PokedexShow7: ; b8ac4 (2e:4ac4)
|
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW_8
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PokedexShow8: ; b8acc (2e:4acc)
|
|
|
|
call CopyDexEntry
|
|
|
|
ld a, POKEDEX_SHOW
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
CopyDexEntry: ; b8ad4 (2e:4ad4)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wPokedexShowPointerAddr]
|
2015-07-22 19:57:02 +00:00
|
|
|
ld l, a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wPokedexShowPointerAddr + 1]
|
2015-07-22 19:57:02 +00:00
|
|
|
ld h, a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wPokedexShowPointerBank]
|
2015-07-22 19:57:02 +00:00
|
|
|
push af
|
|
|
|
push hl
|
2015-10-10 03:09:03 +00:00
|
|
|
call CopyDexEntryPart1
|
2015-07-22 19:57:02 +00:00
|
|
|
dec hl
|
2015-10-10 03:09:03 +00:00
|
|
|
ld [hl], "<DONE>"
|
2015-11-10 04:01:45 +00:00
|
|
|
ld hl, wPokedexShowPointerAddr
|
2015-07-22 19:57:02 +00:00
|
|
|
call CopyRadioTextToRAM
|
|
|
|
pop hl
|
|
|
|
pop af
|
2015-10-10 03:09:03 +00:00
|
|
|
call CopyDexEntryPart2
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
CopyDexEntryPart1: ; b8af3 (2e:4af3)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld de, wPokedexShowPointerBank
|
2015-10-10 03:09:03 +00:00
|
|
|
ld bc, SCREEN_WIDTH - 1
|
2015-07-22 19:57:02 +00:00
|
|
|
call FarCopyBytes
|
2015-11-10 04:01:45 +00:00
|
|
|
ld hl, wPokedexShowPointerAddr
|
2015-10-10 03:09:03 +00:00
|
|
|
ld [hl], "<START>"
|
2015-07-22 19:57:02 +00:00
|
|
|
inc hl
|
2015-10-10 03:09:03 +00:00
|
|
|
ld [hl], "<LINE>"
|
2015-07-22 19:57:02 +00:00
|
|
|
inc hl
|
2015-10-10 03:09:03 +00:00
|
|
|
.loop
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, [hli]
|
2015-10-10 03:09:03 +00:00
|
|
|
cp "@"
|
2015-07-22 19:57:02 +00:00
|
|
|
ret z
|
2015-10-10 03:09:03 +00:00
|
|
|
cp "<NEXT>"
|
2015-07-22 19:57:02 +00:00
|
|
|
ret z
|
2015-10-10 03:09:03 +00:00
|
|
|
cp "<DEXEND>"
|
2015-07-22 19:57:02 +00:00
|
|
|
ret z
|
2015-10-10 03:09:03 +00:00
|
|
|
jr .loop
|
2015-07-22 19:57:02 +00:00
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
CopyDexEntryPart2: ; b8b11 (2e:4b11)
|
2015-07-22 19:57:02 +00:00
|
|
|
ld d, a
|
2015-10-10 03:09:03 +00:00
|
|
|
.loop
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, d
|
|
|
|
call GetFarByte
|
|
|
|
inc hl
|
2015-10-10 03:09:03 +00:00
|
|
|
cp "@"
|
|
|
|
jr z, .okay
|
|
|
|
cp "<NEXT>"
|
|
|
|
jr z, .okay
|
|
|
|
cp "<DEXEND>"
|
|
|
|
jr nz, .loop
|
|
|
|
.okay
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, l
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wPokedexShowPointerAddr], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, h
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wPokedexShowPointerAddr + 1], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, d
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wPokedexShowPointerBank], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
; b8b30 (2e:4b30)
|
|
|
|
|
|
|
|
UnknownText_0xb8b30: ; 0xb8b30
|
|
|
|
; @ @
|
|
|
|
text_jump UnknownText_0x1bca91
|
|
|
|
db "@"
|
|
|
|
; 0xb8b35
|
|
|
|
|
|
|
|
BenMonMusic1: ; b8b35 (2e:4b35)
|
2015-10-10 03:09:03 +00:00
|
|
|
call StartPokemonMusicChannel
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb8baa
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, POKEMON_MUSIC_2
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BenMonMusic2: ; b8b40 (2e:4b40)
|
|
|
|
ld hl, UnknownText_0xb8baf
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, POKEMON_MUSIC_3
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BenMonMusic3: ; b8b48 (2e:4b48)
|
|
|
|
ld hl, UnknownText_0xb8bb4
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, POKEMON_MUSIC_4
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
FernMonMusic1: ; b8b50 (2e:4b50)
|
2015-10-10 03:09:03 +00:00
|
|
|
call StartPokemonMusicChannel
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb8bb9
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LETS_ALL_SING_2
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
FernMonMusic2: ; b8b5b (2e:4b5b)
|
|
|
|
ld hl, UnknownText_0xb8bbe
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, POKEMON_MUSIC_4
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BenFernMusic4: ; b8b63 (2e:4b63)
|
|
|
|
ld hl, UnknownText_0xb8bc3
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, POKEMON_MUSIC_5
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BenFernMusic5: ; b8b6b (2e:4b6b)
|
|
|
|
call GetWeekday
|
|
|
|
and 1
|
|
|
|
ld hl, UnknownText_0xb8bc8
|
2015-10-10 03:09:03 +00:00
|
|
|
jr z, .SunTueThurSun
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb8bcd
|
2015-10-10 03:09:03 +00:00
|
|
|
.SunTueThurSun
|
|
|
|
ld a, POKEMON_MUSIC_6
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BenFernMusic6: ; b8b7d (2e:4b7d)
|
|
|
|
call GetWeekday
|
|
|
|
and 1
|
|
|
|
ld hl, UnknownText_0xb8bd2
|
2015-10-10 03:09:03 +00:00
|
|
|
jr z, .SunTueThurSun
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb8bd7
|
2015-10-10 03:09:03 +00:00
|
|
|
.SunTueThurSun
|
|
|
|
ld a, POKEMON_MUSIC_7
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BenFernMusic7: ; b8b8f (2e:4b8f)
|
|
|
|
ret
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
StartPokemonMusicChannel: ; b8b90 (2e:4b90)
|
2015-07-22 19:57:02 +00:00
|
|
|
call RadioTerminator
|
|
|
|
call PrintText
|
|
|
|
ld de, MUSIC_POKEMON_MARCH
|
|
|
|
call GetWeekday
|
|
|
|
and 1
|
2015-10-10 03:09:03 +00:00
|
|
|
jr z, .SunTueThurSun
|
2015-07-22 19:57:02 +00:00
|
|
|
ld de, MUSIC_POKEMON_LULLABY
|
2015-10-10 03:09:03 +00:00
|
|
|
.SunTueThurSun
|
|
|
|
callab RadioMusicRestartDE
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
; b8baa (2e:4baa)
|
|
|
|
|
|
|
|
UnknownText_0xb8baa: ; 0xb8baa
|
|
|
|
; BEN: #MON MUSIC
|
|
|
|
text_jump UnknownText_0x1bca99
|
|
|
|
db "@"
|
|
|
|
; 0xb8baf
|
|
|
|
|
|
|
|
UnknownText_0xb8baf: ; 0xb8baf
|
|
|
|
; CHANNEL!
|
|
|
|
text_jump UnknownText_0x1bcaab
|
|
|
|
db "@"
|
|
|
|
; 0xb8bb4
|
|
|
|
|
|
|
|
UnknownText_0xb8bb4: ; 0xb8bb4
|
|
|
|
; It's me, DJ BEN!
|
|
|
|
text_jump UnknownText_0x1bcab6
|
|
|
|
db "@"
|
|
|
|
; 0xb8bb9
|
|
|
|
|
|
|
|
UnknownText_0xb8bb9: ; 0xb8bb9
|
|
|
|
; FERN: #MUSIC!
|
|
|
|
text_jump UnknownText_0x1bcac8
|
|
|
|
db "@"
|
|
|
|
; 0xb8bbe
|
|
|
|
|
|
|
|
UnknownText_0xb8bbe: ; 0xb8bbe
|
|
|
|
; With DJ FERN!
|
|
|
|
text_jump UnknownText_0x1bcad8
|
|
|
|
db "@"
|
|
|
|
; 0xb8bc3
|
|
|
|
|
|
|
|
UnknownText_0xb8bc3: ; 0xb8bc3
|
|
|
|
; Today's @ ,
|
|
|
|
text_jump UnknownText_0x1bcae8
|
|
|
|
db "@"
|
|
|
|
; 0xb8bc8
|
|
|
|
|
|
|
|
UnknownText_0xb8bc8: ; 0xb8bc8
|
|
|
|
; so let us jam to
|
|
|
|
text_jump UnknownText_0x1bcaf6
|
|
|
|
db "@"
|
|
|
|
; 0xb8bcd
|
|
|
|
|
|
|
|
UnknownText_0xb8bcd: ; 0xb8bcd
|
|
|
|
; so chill out to
|
|
|
|
text_jump UnknownText_0x1bcb09
|
|
|
|
db "@"
|
|
|
|
; 0xb8bd2
|
|
|
|
|
|
|
|
UnknownText_0xb8bd2: ; 0xb8bd2
|
|
|
|
; #MON March!
|
|
|
|
text_jump UnknownText_0x1bcb1b
|
|
|
|
db "@"
|
|
|
|
; 0xb8bd7
|
|
|
|
|
|
|
|
UnknownText_0xb8bd7: ; 0xb8bd7
|
|
|
|
; #MON Lullaby!
|
|
|
|
text_jump UnknownText_0x1bcb29
|
|
|
|
db "@"
|
|
|
|
; 0xb8bdc
|
|
|
|
|
|
|
|
LuckyNumberShow1: ; b8bdc (2e:4bdc)
|
|
|
|
call StartRadioStation
|
2015-10-10 21:03:04 +00:00
|
|
|
callab Special_CheckLuckyNumberShowFlag
|
|
|
|
jr nc, .dontreset
|
|
|
|
callab Special_ResetLuckyNumberShowFlag
|
|
|
|
.dontreset
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb8c7e
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_2
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow2: ; b8bf5 (2e:4bf5)
|
|
|
|
ld hl, UnknownText_0xb8c83
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_3
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow3: ; b8bfd (2e:4bfd)
|
|
|
|
ld hl, UnknownText_0xb8c88
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_4
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow4: ; b8c05 (2e:4c05)
|
|
|
|
ld hl, UnknownText_0xb8c8d
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_5
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow5: ; b8c0d (2e:4c0d)
|
|
|
|
ld hl, UnknownText_0xb8c92
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_6
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow6: ; b8c15 (2e:4c15)
|
|
|
|
ld hl, UnknownText_0xb8c97
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_7
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow7: ; b8c1d (2e:4c1d)
|
|
|
|
ld hl, UnknownText_0xb8c9c
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_8
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow8: ; b8c25 (2e:4c25)
|
|
|
|
ld hl, StringBuffer1
|
2015-10-10 21:03:04 +00:00
|
|
|
ld de, wLuckyIDNumber
|
|
|
|
lb bc, PRINTNUM_LEADINGZEROS | 2, 5
|
2015-07-22 19:57:02 +00:00
|
|
|
call PrintNum
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, "@"
|
2015-07-22 19:57:02 +00:00
|
|
|
ld [StringBuffer1 + 5], a
|
|
|
|
ld hl, UnknownText_0xb8ca1
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_9
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow9: ; b8c3e (2e:4c3e)
|
|
|
|
ld hl, UnknownText_0xb8ca6
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_10
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow10: ; b8c46 (2e:4c46)
|
|
|
|
ld hl, UnknownText_0xb8c9c
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_11
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow11: ; b8c4e (2e:4c4e)
|
|
|
|
ld hl, UnknownText_0xb8ca1
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_12
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow12: ; b8c56 (2e:4c56)
|
|
|
|
ld hl, UnknownText_0xb8cab
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_13
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow13: ; b8c5e (2e:4c5e)
|
|
|
|
ld hl, UnknownText_0xb8cb0
|
|
|
|
call Random
|
|
|
|
and a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_CHANNEL
|
|
|
|
jr nz, .okay
|
|
|
|
ld a, LUCKY_NUMBER_SHOW_14
|
|
|
|
.okay
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow14: ; b8c6e (2e:4c6e)
|
|
|
|
ld hl, UnknownText_0xb8cb5
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_NUMBER_SHOW_15
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
LuckyNumberShow15: ; b8c76 (2e:4c76)
|
|
|
|
ld hl, UnknownText_0xb8cba
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, LUCKY_CHANNEL
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b8c7e (2e:4c7e)
|
|
|
|
|
|
|
|
UnknownText_0xb8c7e: ; 0xb8c7e
|
|
|
|
; REED: Yeehaw! How
|
|
|
|
text_jump UnknownText_0x1bcb39
|
|
|
|
db "@"
|
|
|
|
; 0xb8c83
|
|
|
|
|
|
|
|
UnknownText_0xb8c83: ; 0xb8c83
|
|
|
|
; y'all doin' now?
|
|
|
|
text_jump UnknownText_0x1bcb4d
|
|
|
|
db "@"
|
|
|
|
; 0xb8c88
|
|
|
|
|
|
|
|
UnknownText_0xb8c88: ; 0xb8c88
|
|
|
|
; Whether you're up
|
|
|
|
text_jump UnknownText_0x1bcb60
|
|
|
|
db "@"
|
|
|
|
; 0xb8c8d
|
|
|
|
|
|
|
|
UnknownText_0xb8c8d: ; 0xb8c8d
|
|
|
|
; or way down low,
|
|
|
|
text_jump UnknownText_0x1bcb73
|
|
|
|
db "@"
|
|
|
|
; 0xb8c92
|
|
|
|
|
|
|
|
UnknownText_0xb8c92: ; 0xb8c92
|
|
|
|
; don't you miss the
|
|
|
|
text_jump UnknownText_0x1bcb86
|
|
|
|
db "@"
|
|
|
|
; 0xb8c97
|
|
|
|
|
|
|
|
UnknownText_0xb8c97: ; 0xb8c97
|
|
|
|
; LUCKY NUMBER SHOW!
|
|
|
|
text_jump UnknownText_0x1bcb9a
|
|
|
|
db "@"
|
|
|
|
; 0xb8c9c
|
|
|
|
|
|
|
|
UnknownText_0xb8c9c: ; 0xb8c9c
|
|
|
|
; This week's Lucky
|
|
|
|
text_jump UnknownText_0x1bcbaf
|
|
|
|
db "@"
|
|
|
|
; 0xb8ca1
|
|
|
|
|
|
|
|
UnknownText_0xb8ca1: ; 0xb8ca1
|
|
|
|
; Number is @ !
|
|
|
|
text_jump UnknownText_0x1bcbc2
|
|
|
|
db "@"
|
|
|
|
; 0xb8ca6
|
|
|
|
|
|
|
|
UnknownText_0xb8ca6: ; 0xb8ca6
|
|
|
|
; I'll repeat that!
|
|
|
|
text_jump UnknownText_0x1bcbd6
|
|
|
|
db "@"
|
|
|
|
; 0xb8cab
|
|
|
|
|
|
|
|
UnknownText_0xb8cab: ; 0xb8cab
|
|
|
|
; Match it and go to
|
|
|
|
text_jump UnknownText_0x1bcbe9
|
|
|
|
db "@"
|
|
|
|
; 0xb8cb0
|
|
|
|
|
|
|
|
UnknownText_0xb8cb0: ; 0xb8cb0
|
|
|
|
; the RADIO TOWER!
|
|
|
|
text_jump UnknownText_0x1bcbfe
|
|
|
|
db "@"
|
|
|
|
; 0xb8cb5
|
|
|
|
|
|
|
|
UnknownText_0xb8cb5: ; 0xb8cb5
|
|
|
|
; …Repeating myself
|
|
|
|
text_jump UnknownText_0x1bcc11
|
|
|
|
db "@"
|
|
|
|
; 0xb8cba
|
|
|
|
|
|
|
|
UnknownText_0xb8cba: ; 0xb8cba
|
|
|
|
; gets to be a drag…
|
|
|
|
text_jump UnknownText_0x1bcc25
|
|
|
|
db "@"
|
|
|
|
; 0xb8cbf
|
|
|
|
|
|
|
|
PeoplePlaces1: ; b8cbf (2e:4cbf)
|
|
|
|
call StartRadioStation
|
|
|
|
ld hl, UnknownText_0xb8ce3
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, PLACES_AND_PEOPLE_2
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PeoplePlaces2: ; b8cca (2e:4cca)
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb8ce8
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, PLACES_AND_PEOPLE_3
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PeoplePlaces3: ; b8cd2 (2e:4cd2)
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb8ced
|
|
|
|
call Random
|
2015-10-10 03:09:03 +00:00
|
|
|
cp $7b ; 48 percent
|
|
|
|
ld a, PLACES_AND_PEOPLE_4 ; People
|
|
|
|
jr c, .ok
|
|
|
|
ld a, PLACES_AND_PEOPLE_6 ; Places
|
|
|
|
.ok
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b8ce3 (2e:4ce3)
|
|
|
|
|
|
|
|
UnknownText_0xb8ce3: ; 0xb8ce3
|
|
|
|
; PLACES AND PEOPLE!
|
|
|
|
text_jump UnknownText_0x1bcc3a
|
|
|
|
db "@"
|
|
|
|
; 0xb8ce8
|
|
|
|
|
|
|
|
UnknownText_0xb8ce8: ; 0xb8ce8
|
|
|
|
; Brought to you by
|
|
|
|
text_jump UnknownText_0x1bcc4f
|
|
|
|
db "@"
|
|
|
|
; 0xb8ced
|
|
|
|
|
|
|
|
UnknownText_0xb8ced: ; 0xb8ced
|
|
|
|
; me, DJ LILY!
|
|
|
|
text_jump UnknownText_0x1bcc63
|
|
|
|
db "@"
|
|
|
|
; 0xb8cf2
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PeoplePlaces4: ; People
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
2015-10-10 03:09:03 +00:00
|
|
|
and $7f
|
2015-07-22 19:57:02 +00:00
|
|
|
inc a
|
2015-10-10 03:09:03 +00:00
|
|
|
cp NUM_TRAINER_CLASSES - 1
|
|
|
|
jr nc, PeoplePlaces4
|
2015-07-22 19:57:02 +00:00
|
|
|
push af
|
2015-10-10 03:09:03 +00:00
|
|
|
ld hl, .E4Names
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, [StatusFlags]
|
2015-10-10 21:03:04 +00:00
|
|
|
bit 6, a ; ENGINE_CREDITS_SKIP
|
2015-10-10 03:09:03 +00:00
|
|
|
jr z, .ok
|
|
|
|
ld hl, .KantoLeaderNames
|
2015-07-22 19:57:02 +00:00
|
|
|
ld a, [KantoBadges]
|
|
|
|
cp %11111111
|
2015-10-10 03:09:03 +00:00
|
|
|
jr nz, .ok
|
|
|
|
ld hl, .MiscNames
|
|
|
|
.ok
|
2015-07-22 19:57:02 +00:00
|
|
|
pop af
|
|
|
|
ld c, a
|
2015-10-10 03:09:03 +00:00
|
|
|
ld de, 1
|
2015-07-22 19:57:02 +00:00
|
|
|
push bc
|
|
|
|
call IsInArray
|
|
|
|
pop bc
|
2015-10-10 03:09:03 +00:00
|
|
|
jr c, PeoplePlaces4
|
2015-07-22 19:57:02 +00:00
|
|
|
push bc
|
2015-07-25 18:25:37 +00:00
|
|
|
callab GetTrainerClassName
|
2015-07-22 19:57:02 +00:00
|
|
|
ld de, StringBuffer1
|
|
|
|
call CopyName1
|
|
|
|
pop bc
|
2015-10-10 03:09:03 +00:00
|
|
|
ld b, 1
|
2015-07-22 19:57:02 +00:00
|
|
|
callab GetTrainerName
|
|
|
|
ld hl, UnknownText_0xb8d51
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, PLACES_AND_PEOPLE_5
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b8d3e (2e:4d3e)
|
|
|
|
|
2015-11-10 04:01:45 +00:00
|
|
|
.E4Names: db WILL, BRUNO, KAREN, KOGA, CHAMPION
|
|
|
|
.KantoLeaderNames: db BROCK, MISTY, LT_SURGE, ERIKA, JANINE, SABRINA, BLAINE, BLUE
|
|
|
|
.MiscNames: db RIVAL1, POKEMON_PROF, CAL, RIVAL2, RED
|
2015-10-10 03:09:03 +00:00
|
|
|
db -1
|
2015-07-22 19:57:02 +00:00
|
|
|
; b8d51
|
|
|
|
|
|
|
|
UnknownText_0xb8d51: ; 0xb8d51
|
|
|
|
; @ @ @
|
|
|
|
text_jump UnknownText_0x1bcc72
|
|
|
|
db "@"
|
|
|
|
; 0xb8d56
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PeoplePlaces5: ; b8d56 (2e:4d56)
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
|
|
|
and $f
|
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2015-10-10 03:09:03 +00:00
|
|
|
ld hl, .Descriptors
|
2015-07-22 19:57:02 +00:00
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
call Random
|
2015-10-10 03:09:03 +00:00
|
|
|
cp $a ; 6.25 percent
|
|
|
|
ld a, PLACES_AND_PEOPLE
|
|
|
|
jr c, .ok
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
2015-10-10 03:09:03 +00:00
|
|
|
cp $7b ; 48 percent
|
|
|
|
ld a, PLACES_AND_PEOPLE_4 ; People
|
|
|
|
jr c, .ok
|
|
|
|
ld a, PLACES_AND_PEOPLE_6 ; Places
|
|
|
|
.ok
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
.Descriptors
|
2015-10-10 03:09:03 +00: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 18:01:20 +00:00
|
|
|
dw PnP_soso
|
|
|
|
dw PnP_great
|
|
|
|
dw PnP_mytype
|
|
|
|
dw PnP_cool
|
2015-10-10 03:09:03 +00:00
|
|
|
dw PnP_inspiring
|
|
|
|
dw PnP_weird
|
|
|
|
dw PnP_rightforme
|
|
|
|
dw PnP_odd
|
2015-07-22 19:57:02 +00:00
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_cute:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is cute.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_cute
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_lazy:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is sort of lazy.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_lazy
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_happy:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is always happy.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_happy
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_noisy:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is quite noisy.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_noisy
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_precocious:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is precocious.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_precocious
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_bold:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is somewhat bold.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_bold
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_picky:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is too picky!
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_picky
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_sortofok:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is sort of OK.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_sortofok
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_soso:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is just so-so.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_soso
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_great:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is actually great.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_great
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_mytype:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is just my type.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_mytype
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_cool:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is so cool, no?
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_cool
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_inspiring:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is inspiring!
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_inspiring
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_weird:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is kind of weird.
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_weird
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_rightforme:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is right for me?
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_rightforme
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
PnP_odd:
|
2015-07-22 19:57:02 +00:00
|
|
|
; is definitely odd!
|
2016-01-06 18:01:20 +00:00
|
|
|
text_jump _PnP_odd
|
2015-07-22 19:57:02 +00:00
|
|
|
db "@"
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PeoplePlaces6: ; Places
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
2015-10-10 03:09:03 +00:00
|
|
|
cp 9
|
|
|
|
jr nc, PeoplePlaces6
|
|
|
|
ld hl, .Maps
|
2015-07-22 19:57:02 +00:00
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
rept 2
|
|
|
|
add hl, bc
|
|
|
|
endr
|
|
|
|
ld b, [hl]
|
|
|
|
inc hl
|
|
|
|
ld c, [hl]
|
|
|
|
call GetWorldMapLocation
|
|
|
|
ld e, a
|
|
|
|
callba GetLandmarkName
|
|
|
|
ld hl, UnknownText_0xb8e23
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, PLACES_AND_PEOPLE_7
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b8e11 (2e:4e11)
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.Maps: ; b8e11
|
2015-07-22 19:57:02 +00:00
|
|
|
map PALLET_TOWN
|
|
|
|
map ROUTE_22
|
|
|
|
map PEWTER_CITY
|
|
|
|
map CERULEAN_POLICE_STATION
|
|
|
|
map ROUTE_12
|
|
|
|
map ROUTE_11
|
|
|
|
map ROUTE_16
|
|
|
|
map ROUTE_14
|
|
|
|
map CINNABAR_POKECENTER_2F_BETA
|
|
|
|
; b8e23
|
|
|
|
|
|
|
|
UnknownText_0xb8e23: ; 0xb8e23
|
|
|
|
; @ @
|
|
|
|
text_jump UnknownText_0x1bcda0
|
|
|
|
db "@"
|
|
|
|
; 0xb8e28
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
PeoplePlaces7: ; b8e28 (2e:4e28)
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
|
|
|
and $f
|
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
2015-10-10 21:03:04 +00:00
|
|
|
ld hl, .Descriptors
|
2015-07-22 19:57:02 +00:00
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
call CopyRadioTextToRAM
|
|
|
|
call Random
|
2015-11-10 04:01:45 +00:00
|
|
|
cp 4 percent
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, PLACES_AND_PEOPLE
|
|
|
|
jr c, .ok
|
2015-07-22 19:57:02 +00:00
|
|
|
call Random
|
2015-11-10 04:01:45 +00:00
|
|
|
cp 1 + 48 percent
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, PLACES_AND_PEOPLE_4 ; People
|
|
|
|
jr c, .ok
|
|
|
|
ld a, PLACES_AND_PEOPLE_6 ; Places
|
|
|
|
.ok
|
2015-07-22 19:57:02 +00:00
|
|
|
jp PrintRadioLine
|
|
|
|
; b8e52 (2e:4e52)
|
|
|
|
|
2016-01-06 18:01:20 +00:00
|
|
|
.Descriptors:
|
2015-10-10 03:09:03 +00: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 18:01:20 +00:00
|
|
|
dw PnP_soso
|
|
|
|
dw PnP_great
|
|
|
|
dw PnP_mytype
|
|
|
|
dw PnP_cool
|
2015-10-10 03:09:03 +00:00
|
|
|
dw PnP_inspiring
|
|
|
|
dw PnP_weird
|
|
|
|
dw PnP_rightforme
|
|
|
|
dw PnP_odd
|
2015-07-22 19:57:02 +00:00
|
|
|
|
|
|
|
RocketRadio1: ; b8e72 (2e:4e72)
|
|
|
|
call StartRadioStation
|
|
|
|
ld hl, UnknownText_0xb8ec5
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_2
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio2: ; b8e7d (2e:4e7d)
|
|
|
|
ld hl, UnknownText_0xb8eca
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_3
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio3: ; b8e85 (2e:4e85)
|
|
|
|
ld hl, UnknownText_0xb8ecf
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_4
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio4: ; b8e8d (2e:4e8d)
|
|
|
|
ld hl, UnknownText_0xb8ed4
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_5
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio5: ; b8e95 (2e:4e95)
|
|
|
|
ld hl, UnknownText_0xb8ed9
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_6
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio6: ; b8e9d (2e:4e9d)
|
|
|
|
ld hl, UnknownText_0xb8ede
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_7
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio7: ; b8ea5 (2e:4ea5)
|
|
|
|
ld hl, UnknownText_0xb8ee3
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_8
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio8: ; b8ead (2e:4ead)
|
|
|
|
ld hl, UnknownText_0xb8ee8
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_9
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio9: ; b8eb5 (2e:4eb5)
|
|
|
|
ld hl, UnknownText_0xb8eed
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO_10
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
RocketRadio10: ; b8ebd (2e:4ebd)
|
|
|
|
ld hl, UnknownText_0xb8ef2
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, ROCKET_RADIO
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
; b8ec5 (2e:4ec5)
|
|
|
|
|
|
|
|
UnknownText_0xb8ec5: ; 0xb8ec5
|
|
|
|
; … …Ahem, we are
|
|
|
|
text_jump UnknownText_0x1bcda8
|
|
|
|
db "@"
|
|
|
|
; 0xb8eca
|
|
|
|
|
|
|
|
UnknownText_0xb8eca: ; 0xb8eca
|
|
|
|
; TEAM ROCKET!
|
|
|
|
text_jump UnknownText_0x1bcdba
|
|
|
|
db "@"
|
|
|
|
; 0xb8ecf
|
|
|
|
|
|
|
|
UnknownText_0xb8ecf: ; 0xb8ecf
|
|
|
|
; After three years
|
|
|
|
text_jump UnknownText_0x1bcdc9
|
|
|
|
db "@"
|
|
|
|
; 0xb8ed4
|
|
|
|
|
|
|
|
UnknownText_0xb8ed4: ; 0xb8ed4
|
|
|
|
; of preparation, we
|
|
|
|
text_jump UnknownText_0x1bcddd
|
|
|
|
db "@"
|
|
|
|
; 0xb8ed9
|
|
|
|
|
|
|
|
UnknownText_0xb8ed9: ; 0xb8ed9
|
|
|
|
; have risen again
|
|
|
|
text_jump UnknownText_0x1bcdf2
|
|
|
|
db "@"
|
|
|
|
; 0xb8ede
|
|
|
|
|
|
|
|
UnknownText_0xb8ede: ; 0xb8ede
|
|
|
|
; from the ashes!
|
|
|
|
text_jump UnknownText_0x1bce05
|
|
|
|
db "@"
|
|
|
|
; 0xb8ee3
|
|
|
|
|
|
|
|
UnknownText_0xb8ee3: ; 0xb8ee3
|
|
|
|
; GIOVANNI! @ Can you
|
|
|
|
text_jump UnknownText_0x1bce17
|
|
|
|
db "@"
|
|
|
|
; 0xb8ee8
|
|
|
|
|
|
|
|
UnknownText_0xb8ee8: ; 0xb8ee8
|
|
|
|
; hear?@ We did it!
|
|
|
|
text_jump UnknownText_0x1bce2e
|
|
|
|
db "@"
|
|
|
|
; 0xb8eed
|
|
|
|
|
|
|
|
UnknownText_0xb8eed: ; 0xb8eed
|
|
|
|
; @ Where is our boss?
|
|
|
|
text_jump UnknownText_0x1bce44
|
|
|
|
db "@"
|
|
|
|
; 0xb8ef2
|
|
|
|
|
|
|
|
UnknownText_0xb8ef2: ; 0xb8ef2
|
|
|
|
; @ Is he listening?
|
|
|
|
text_jump UnknownText_0x1bce5c
|
|
|
|
db "@"
|
|
|
|
; 0xb8ef7
|
|
|
|
|
|
|
|
PokeFluteRadio: ; b8ef7 (2e:4ef7)
|
|
|
|
call StartRadioStation
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, 1
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
UnownRadio: ; b8f00 (2e:4f00)
|
2015-07-22 19:57:02 +00:00
|
|
|
call StartRadioStation
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, 1
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
EvolutionRadio: ; b8f09 (2e:4f09)
|
2015-07-22 19:57:02 +00:00
|
|
|
call StartRadioStation
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, 1
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
|
|
|
|
BuenasPassword1: ; b8f12 (2e:4f12)
|
|
|
|
; Determine if we need to be here
|
2015-11-10 04:01:45 +00:00
|
|
|
call BuenasPasswordCheckTime
|
2015-10-10 03:09:03 +00:00
|
|
|
jp nc, .PlayPassword
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wNumRadioLinesPrinted]
|
2015-07-22 19:57:02 +00:00
|
|
|
and a
|
|
|
|
jp z, BuenasPassword20
|
|
|
|
jp BuenasPassword8
|
|
|
|
|
2015-10-10 03:09:03 +00:00
|
|
|
.PlayPassword: ; b8f22 (2e:4f22)
|
2015-07-22 19:57:02 +00:00
|
|
|
call StartRadioStation
|
2015-11-10 21:53:37 +00:00
|
|
|
ld a, [hBGMapMode]
|
2015-07-22 19:57:02 +00:00
|
|
|
push af
|
|
|
|
xor a
|
2015-11-10 21:53:37 +00:00
|
|
|
ld [hBGMapMode], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ld de, String_b9171
|
|
|
|
hlcoord 2, 9
|
|
|
|
call PlaceString
|
|
|
|
pop af
|
2015-11-10 21:53:37 +00:00
|
|
|
ld [hBGMapMode], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb9182
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_2
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword2: ; b8f3f (2e:4f3f)
|
|
|
|
ld hl, UnknownText_0xb9187
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_3
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword3: ; b8f47 (2e:4f47)
|
2015-11-10 04:01:45 +00:00
|
|
|
call BuenasPasswordCheckTime
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb918c
|
|
|
|
jp c, BuenasPasswordAfterMidnight
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_4
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword4: ; b8f55 (2e:4f55)
|
2015-11-10 04:01:45 +00:00
|
|
|
call BuenasPasswordCheckTime
|
2015-07-22 19:57:02 +00:00
|
|
|
jp c, BuenasPassword8
|
2015-10-24 14:34:19 +00:00
|
|
|
ld a, [wBuenasPassword]
|
2015-07-22 19:57:02 +00:00
|
|
|
; If we already generated the password today, we don't need to generate a new one.
|
|
|
|
ld hl, WeeklyFlags
|
|
|
|
bit 7, [hl]
|
|
|
|
jr nz, .AlreadyGotIt
|
|
|
|
; There are only 11 groups to choose from.
|
|
|
|
.greater_than_11
|
|
|
|
call Random
|
|
|
|
and $f
|
2015-11-10 04:01:45 +00:00
|
|
|
cp NUM_PASSWORD_CATEGORIES
|
2015-07-22 19:57:02 +00: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
|
|
|
|
and $3
|
2015-11-10 04:01:45 +00:00
|
|
|
cp NUM_PASSWORDS_PER_CATEGORY
|
2015-07-22 19:57:02 +00:00
|
|
|
jr nc, .greater_than_three
|
2015-10-24 14:34:19 +00:00
|
|
|
; The high nybble of wBuenasPassword will now contain the password group index, and the low nybble contains the actual password.
|
2015-07-22 19:57:02 +00:00
|
|
|
add e
|
2015-10-24 14:34:19 +00:00
|
|
|
ld [wBuenasPassword], a
|
2015-07-22 19:57:02 +00:00
|
|
|
; Set the flag so that we don't generate a new password this week.
|
|
|
|
ld hl, WeeklyFlags
|
|
|
|
set 7, [hl]
|
|
|
|
.AlreadyGotIt
|
|
|
|
ld c, a
|
|
|
|
call GetBuenasPassword
|
|
|
|
ld hl, UnknownText_0xb9191
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_5
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
GetBuenasPassword: ; b8f8f
|
|
|
|
; 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
|
|
|
|
ld hl, PasswordTable
|
|
|
|
ld d, 0
|
|
|
|
ld e, a
|
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
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
|
|
|
|
rept 2
|
|
|
|
add hl, de
|
|
|
|
endr
|
|
|
|
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
|
|
|
|
; b8fb8
|
|
|
|
|
|
|
|
|
|
|
|
.StringFunctionJumpTable: ; b8fb8 (2e:4fb8)
|
|
|
|
dw .Mon
|
|
|
|
dw .Item
|
|
|
|
dw .Move
|
|
|
|
dw .RawString
|
|
|
|
|
|
|
|
|
|
|
|
.Mon: ; b8fc0 (2e:4fc0)
|
|
|
|
call .GetTheIndex
|
|
|
|
call GetPokemonName
|
|
|
|
ret
|
|
|
|
|
|
|
|
.Item: ; b8fc7 (2e:4fc7)
|
|
|
|
call .GetTheIndex
|
|
|
|
call GetItemName
|
|
|
|
ret
|
|
|
|
|
|
|
|
.Move: ; b8fce (2e:4fce)
|
|
|
|
call .GetTheIndex
|
|
|
|
call GetMoveName
|
|
|
|
ret
|
|
|
|
|
|
|
|
.GetTheIndex: ; b8fd5 (2e:4fd5)
|
|
|
|
ld h, 0
|
|
|
|
ld l, c
|
|
|
|
add hl, de
|
|
|
|
ld a, [hl]
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
|
|
|
|
.RawString: ; b8fde (2e:4fde)
|
|
|
|
; 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
|
|
|
|
; ... and copy it into StringBuffer1.
|
|
|
|
.skip
|
|
|
|
ld hl, StringBuffer1
|
|
|
|
.copy_loop
|
|
|
|
ld a, [de]
|
|
|
|
inc de
|
|
|
|
ld [hli], a
|
|
|
|
cp "@"
|
|
|
|
jr nz, .copy_loop
|
|
|
|
ld de, StringBuffer1
|
|
|
|
ret
|
|
|
|
; b8ff9 (2e:4ff9)
|
|
|
|
|
|
|
|
PasswordTable: ; b8ff9
|
|
|
|
dw .JohtoStarters
|
|
|
|
dw .Beverages
|
|
|
|
dw .HealingItems
|
|
|
|
dw .Balls
|
|
|
|
dw .Pokemon1
|
|
|
|
dw .Pokemon2
|
|
|
|
dw .JohtoTowns
|
|
|
|
dw .Types
|
|
|
|
dw .Moves
|
|
|
|
dw .XItems
|
|
|
|
dw .RadioStations
|
|
|
|
; b900f
|
|
|
|
; string type, points, option 1, option 2, option 3
|
|
|
|
.JohtoStarters: db BUENA_MON, 10, CYNDAQUIL, TOTODILE, CHIKORITA
|
|
|
|
.Beverages: db BUENA_ITEM, 12, FRESH_WATER, SODA_POP, LEMONADE
|
|
|
|
.HealingItems: db BUENA_ITEM, 12, POTION, ANTIDOTE, PARLYZ_HEAL
|
|
|
|
.Balls: db BUENA_ITEM, 12, POKE_BALL, GREAT_BALL, ULTRA_BALL
|
|
|
|
.Pokemon1: db BUENA_MON, 10, PIKACHU, RATTATA, GEODUDE
|
|
|
|
.Pokemon2: db BUENA_MON, 10, HOOTHOOT, SPINARAK, DROWZEE
|
|
|
|
.JohtoTowns: db BUENA_STRING, 16, "NEW BARK TOWN@", "CHERRYGROVE CITY@", "AZALEA TOWN@"
|
|
|
|
.Types: db BUENA_STRING, 6, "FLYING@", "BUG@", "GRASS@"
|
|
|
|
.Moves: db BUENA_MOVE, 12, TACKLE, GROWL, MUD_SLAP
|
|
|
|
.XItems: db BUENA_ITEM, 12, X_ATTACK, X_DEFEND, X_SPEED
|
|
|
|
.RadioStations: db BUENA_STRING, 13, "#MON Talk@", "#MON Music@", "Lucky Channel@"
|
|
|
|
; b909c
|
|
|
|
|
|
|
|
BuenasPassword5: ; b909c (2e:509c)
|
|
|
|
ld hl, UnknownText_0xb9196
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_6
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword6: ; b90a4 (2e:50a4)
|
|
|
|
ld hl, UnknownText_0xb919b
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_7
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword7: ; b90ac (2e:50ac)
|
2015-11-10 04:01:45 +00:00
|
|
|
call BuenasPasswordCheckTime
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb91a0
|
|
|
|
jr c, BuenasPasswordAfterMidnight
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPasswordAfterMidnight: ; b90b9 (2e:50b9)
|
|
|
|
push hl
|
|
|
|
ld hl, WeeklyFlags
|
|
|
|
res 7, [hl]
|
|
|
|
pop hl
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_8
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword8: ; b90c5 (2e:50c5)
|
|
|
|
ld hl, WeeklyFlags
|
|
|
|
res 7, [hl]
|
|
|
|
ld hl, UnknownText_0xb91d2
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_9
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword9: ; b90d2 (2e:50d2)
|
|
|
|
ld hl, UnknownText_0xb91a5
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_10
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword10: ; b90da (2e:50da)
|
|
|
|
ld hl, UnknownText_0xb91aa
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_11
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword11: ; b90e2 (2e:50e2)
|
|
|
|
ld hl, UnknownText_0xb91af
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_12
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword12: ; b90ea (2e:50ea)
|
|
|
|
ld hl, UnknownText_0xb91b4
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_13
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword13: ; b90f2 (2e:50f2)
|
|
|
|
ld hl, UnknownText_0xb91b9
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_14
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword14: ; b90fa (2e:50fa)
|
|
|
|
ld hl, UnknownText_0xb91be
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_15
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword15: ; b9102 (2e:5102)
|
|
|
|
ld hl, UnknownText_0xb91c3
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_16
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword16: ; b910a (2e:510a)
|
|
|
|
ld hl, UnknownText_0xb91c8
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_17
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword17: ; b9112 (2e:5112)
|
|
|
|
ld hl, UnknownText_0xb91cd
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_18
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword18: ; b911a (2e:511a)
|
|
|
|
ld hl, UnknownText_0xb91d2
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_19
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword19: ; b9122 (2e:5122)
|
|
|
|
ld hl, UnknownText_0xb91d2
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_20
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword20: ; b912a (2e:512a)
|
2015-11-10 21:53:37 +00:00
|
|
|
ld a, [hBGMapMode]
|
2015-07-22 19:57:02 +00:00
|
|
|
push af
|
|
|
|
callba NoRadioMusic
|
|
|
|
callba NoRadioName
|
|
|
|
pop af
|
2015-11-10 21:53:37 +00:00
|
|
|
ld [hBGMapMode], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, WeeklyFlags
|
|
|
|
res 7, [hl]
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, BUENAS_PASSWORD
|
|
|
|
ld [wCurrentRadioLine], a
|
2015-07-22 19:57:02 +00:00
|
|
|
xor a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
2015-07-22 19:57:02 +00:00
|
|
|
ld hl, UnknownText_0xb91d7
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_21
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
|
|
|
BuenasPassword21: ; b9152 (2e:5152)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, BUENAS_PASSWORD
|
|
|
|
ld [wCurrentRadioLine], a
|
2015-07-22 19:57:02 +00:00
|
|
|
xor a
|
2015-11-10 04:01:45 +00:00
|
|
|
ld [wNumRadioLinesPrinted], a
|
|
|
|
call BuenasPasswordCheckTime
|
2015-07-22 19:57:02 +00:00
|
|
|
jp nc, BuenasPassword1
|
|
|
|
ld hl, UnknownText_0xb91d7
|
2015-10-10 03:09:03 +00:00
|
|
|
ld a, BUENAS_PASSWORD_21
|
2015-07-22 19:57:02 +00:00
|
|
|
jp NextRadioLine
|
|
|
|
|
2015-11-10 04:01:45 +00:00
|
|
|
BuenasPasswordCheckTime: ; b9169 (2e:5169)
|
2015-07-22 19:57:02 +00:00
|
|
|
call UpdateTime
|
2015-11-10 21:53:37 +00:00
|
|
|
ld a, [hHours]
|
2015-11-10 04:01:45 +00:00
|
|
|
cp 18 ; 6 PM
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
; b9171 (2e:5171)
|
|
|
|
|
|
|
|
String_b9171:
|
|
|
|
db "BUENA'S PASSWORD@"
|
|
|
|
; b9182
|
|
|
|
|
|
|
|
UnknownText_0xb9182: ; 0xb9182
|
|
|
|
; BUENA: BUENA here!
|
|
|
|
text_jump UnknownText_0x1bce72
|
|
|
|
db "@"
|
|
|
|
; 0xb9187
|
|
|
|
|
|
|
|
UnknownText_0xb9187: ; 0xb9187
|
|
|
|
; Today's password!
|
|
|
|
text_jump UnknownText_0x1bce87
|
|
|
|
db "@"
|
|
|
|
; 0xb918c
|
|
|
|
|
|
|
|
UnknownText_0xb918c: ; 0xb918c
|
|
|
|
; Let me think… It's
|
|
|
|
text_jump UnknownText_0x1bce9a
|
|
|
|
db "@"
|
|
|
|
; 0xb9191
|
|
|
|
|
|
|
|
UnknownText_0xb9191: ; 0xb9191
|
|
|
|
; @ !
|
|
|
|
text_jump UnknownText_0x1bceae
|
|
|
|
db "@"
|
|
|
|
; 0xb9196
|
|
|
|
|
|
|
|
UnknownText_0xb9196: ; 0xb9196
|
|
|
|
; Don't forget it!
|
|
|
|
text_jump UnknownText_0x1bceb7
|
|
|
|
db "@"
|
|
|
|
; 0xb919b
|
|
|
|
|
|
|
|
UnknownText_0xb919b: ; 0xb919b
|
|
|
|
; I'm in GOLDENROD's
|
|
|
|
text_jump UnknownText_0x1bcec9
|
|
|
|
db "@"
|
|
|
|
; 0xb91a0
|
|
|
|
|
|
|
|
UnknownText_0xb91a0: ; 0xb91a0
|
|
|
|
; RADIO TOWER!
|
|
|
|
text_jump UnknownText_0x1bcedc
|
|
|
|
db "@"
|
|
|
|
; 0xb91a5
|
|
|
|
|
|
|
|
UnknownText_0xb91a5: ; 0xb91a5
|
|
|
|
; BUENA: Oh my…
|
|
|
|
text_jump UnknownText_0x1bceeb
|
|
|
|
db "@"
|
|
|
|
; 0xb91aa
|
|
|
|
|
|
|
|
UnknownText_0xb91aa: ; 0xb91aa
|
|
|
|
; It's midnight! I
|
|
|
|
text_jump UnknownText_0x1bcefb
|
|
|
|
db "@"
|
|
|
|
; 0xb91af
|
|
|
|
|
|
|
|
UnknownText_0xb91af: ; 0xb91af
|
|
|
|
; have to shut down!
|
|
|
|
text_jump UnknownText_0x1bcf0d
|
|
|
|
db "@"
|
|
|
|
; 0xb91b4
|
|
|
|
|
|
|
|
UnknownText_0xb91b4: ; 0xb91b4
|
|
|
|
; Thanks for tuning
|
|
|
|
text_jump UnknownText_0x1bcf22
|
|
|
|
db "@"
|
|
|
|
; 0xb91b9
|
|
|
|
|
|
|
|
UnknownText_0xb91b9: ; 0xb91b9
|
|
|
|
; in to the end! But
|
|
|
|
text_jump UnknownText_0x1bcf36
|
|
|
|
db "@"
|
|
|
|
; 0xb91be
|
|
|
|
|
|
|
|
UnknownText_0xb91be: ; 0xb91be
|
|
|
|
; don't stay up too
|
|
|
|
text_jump UnknownText_0x1bcf4b
|
|
|
|
db "@"
|
|
|
|
; 0xb91c3
|
|
|
|
|
|
|
|
UnknownText_0xb91c3: ; 0xb91c3
|
|
|
|
; late! Presented to
|
|
|
|
text_jump UnknownText_0x1bcf5e
|
|
|
|
db "@"
|
|
|
|
; 0xb91c8
|
|
|
|
|
|
|
|
UnknownText_0xb91c8: ; 0xb91c8
|
|
|
|
; you by DJ BUENA!
|
|
|
|
text_jump UnknownText_0x1bcf73
|
|
|
|
db "@"
|
|
|
|
; 0xb91cd
|
|
|
|
|
|
|
|
UnknownText_0xb91cd: ; 0xb91cd
|
|
|
|
; I'm outta here!
|
|
|
|
text_jump UnknownText_0x1bcf86
|
|
|
|
db "@"
|
|
|
|
; 0xb91d2
|
|
|
|
|
|
|
|
UnknownText_0xb91d2: ; 0xb91d2
|
|
|
|
; …
|
|
|
|
text_jump UnknownText_0x1bcf96
|
|
|
|
db "@"
|
|
|
|
; 0xb91d7
|
|
|
|
|
|
|
|
UnknownText_0xb91d7: ; 0xb91d7
|
|
|
|
;
|
|
|
|
text_jump UnknownText_0x1bcf99
|
|
|
|
db "@"
|
|
|
|
; 0xb91dc
|
|
|
|
|
|
|
|
CopyRadioTextToRAM: ; b91dc (2e:51dc)
|
|
|
|
ld a, [hl]
|
|
|
|
cp TX_FAR
|
2015-11-10 04:01:45 +00:00
|
|
|
jp z, FarCopyRadioText
|
|
|
|
ld de, wRadioText
|
2015-07-22 19:57:02 +00:00
|
|
|
ld bc, SCREEN_WIDTH * 2
|
|
|
|
jp CopyBytes
|
|
|
|
|
|
|
|
StartRadioStation: ; b91eb (2e:51eb)
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wNumRadioLinesPrinted]
|
2015-07-22 19:57:02 +00:00
|
|
|
and a
|
|
|
|
ret nz
|
|
|
|
call RadioTerminator
|
|
|
|
call PrintText
|
|
|
|
ld hl, RadioChannelSongs
|
2015-11-10 04:01:45 +00:00
|
|
|
ld a, [wCurrentRadioLine]
|
2015-07-22 19:57:02 +00:00
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
rept 2
|
|
|
|
add hl, bc
|
|
|
|
endr
|
|
|
|
ld e, [hl]
|
|
|
|
inc hl
|
|
|
|
ld d, [hl]
|
2015-10-10 03:09:03 +00:00
|
|
|
callab RadioMusicRestartDE
|
2015-07-22 19:57:02 +00:00
|
|
|
ret
|
|
|
|
; b920b (2e:520b)
|
|
|
|
|
|
|
|
RadioChannelSongs: ; b920b
|
|
|
|
dw MUSIC_POKEMON_TALK
|
|
|
|
dw MUSIC_POKEMON_CENTER
|
|
|
|
dw MUSIC_TITLE
|
|
|
|
dw MUSIC_GAME_CORNER
|
|
|
|
dw MUSIC_BUENAS_PASSWORD
|
|
|
|
dw MUSIC_VIRIDIAN_CITY
|
|
|
|
dw MUSIC_BICYCLE
|
|
|
|
dw MUSIC_ROCKET_OVERTURE
|
|
|
|
dw MUSIC_POKE_FLUTE_CHANNEL
|
|
|
|
dw MUSIC_RUINS_OF_ALPH_RADIO
|
|
|
|
dw MUSIC_LAKE_OF_RAGE_ROCKET_RADIO
|
|
|
|
; b9221
|
|
|
|
|
|
|
|
NextRadioLine: ; b9221 (2e:5221)
|
|
|
|
push af
|
|
|
|
call CopyRadioTextToRAM
|
|
|
|
pop af
|
|
|
|
jp PrintRadioLine
|
|
|
|
; b9229
|