; check the time; avoid changing DST if doing so would change the current day
lda,[wDST]
bit7,a
lda,[hHours]
jrz,.asm_16447
anda; within one hour of 00:00?
jrz,.LostBooklet
jr.loop
.asm_16447
cp23; within one hour of 23:00?
jrnz,.loop
; fallthrough
.LostBooklet
callFunction164ea
bccoord1,14
ldhl,UnknownText_0x164f4
callPlaceWholeStringInBoxAtOnce
callYesNoBox
retc
callFunction164ea
bccoord1,14
ldhl,LostInstructionBookletText
callPlaceWholeStringInBoxAtOnce
ret
.loop
callFunction164ea
bccoord1,14
lda,[wDST]
bit7,a
jrz,.asm_16497
ldhl,UnknownText_0x16508
callPlaceWholeStringInBoxAtOnce
callYesNoBox
retc
lda,[wDST]
res7,a
ld[wDST],a
callFunction164d1
callFunction164ea
bccoord1,14
ldhl,UnknownText_0x1650d
callPlaceWholeStringInBoxAtOnce
ret
.asm_16497
ldhl,UnknownText_0x164fe
callPlaceWholeStringInBoxAtOnce
callYesNoBox
retc
lda,[wDST]
set7,a
ld[wDST],a
callFunction164b9
callFunction164ea
bccoord1,14
ldhl,UnknownText_0x16503
callPlaceWholeStringInBoxAtOnce
ret
; 164b9
Function164b9:; 164b9
lda,[StartHour]
add1
sub24
jrnc,.asm_164c4
add24
.asm_164c4
ld[StartHour],a
ccf
lda,[StartDay]
adc0
ld[StartDay],a
ret
; 164d1
Function164d1:; 164d1
lda,[StartHour]
sub1
jrnc,.asm_164da
add24
.asm_164da
ld[StartHour],a
lda,[StartDay]
sbc0
jrnc,.asm_164e6
add7
.asm_164e6
ld[StartDay],a
ret
; 164ea
Function164ea:; 164ea
hlcoord1,14
ldbc,$0312
callClearBox
ret
; 164f4
UnknownText_0x164f4:; 0x164f4
; Do you want to adjust your clock for Daylight Saving Time?
text_jumpUnknownText_0x1c6095
db"@"
; 0x164f9
LostInstructionBookletText:; 0x164f9
; I lost the instruction booklet for the POKéGEAR.
; Come back again in a while.
text_jumpUnknownText_0x1c60d1
db"@"
; 0x164fe
UnknownText_0x164fe:; 0x164fe
; Do you want to switch to Daylight Saving Time?
text_jumpUnknownText_0x1c6000
db"@"
; 0x16503
UnknownText_0x16503:; 0x16503
; I set the clock forward by one hour.
text_jumpUnknownText_0x1c6030
db"@"
; 0x16508
UnknownText_0x16508:; 0x16508
; Is Daylight Saving Time over?
text_jumpUnknownText_0x1c6056
db"@"
; 0x1650d
UnknownText_0x1650d:; 0x1650d
; I put the clock back one hour.
text_jumpUnknownText_0x1c6075
db"@"
; 0x16512
Function16512:; 16512
ldde,String_1669f
jrFunction1651a
Function16517:; 16517
ldde,String_166a8
Function1651a:; 1651a
pushde
xora
ld[hBGMapMode],a
hlcoord0,0
lbbc,6,18
callTextBox
hlcoord1,2
ldde,String_16699
callPlaceString
hlcoord12,2
ldde,wd851
lbbc,PRINTNUM_MONEY|3,6
callPrintNum
hlcoord1,4
ldde,String_166b0
callPlaceString
hlcoord12,4
ldde,Money
lbbc,PRINTNUM_MONEY|3,6
callPrintNum
hlcoord1,6
popde
callPlaceString
hlcoord12,6
ldde,StringBuffer2
lbbc,PRINTNUM_MONEY|PRINTNUM_LEADINGZEROS|3,6
callPrintNum
callUpdateSprites
callFunction3238
ret
; 1656b
Function1656b:; 1656b
ldc,10
callDelayFrames
ret
; 16571
Function16571:; 16571
.loop
callFunctiona57
ldhl,hJoyPressed
lda,[hl]
andB_BUTTON
jrnz,.pressedB
lda,[hl]
andA_BUTTON
jrnz,.pressedA
call.dpadaction
xora
ld[hBGMapMode],a
hlcoord12,6
ldbc,7
lda," "
callByteFill
hlcoord12,6
ldde,StringBuffer2
lbbc,PRINTNUM_MONEY|PRINTNUM_LEADINGZEROS|3,6
callPrintNum
lda,[$ff9b]
and$10
jrnz,.skip
hlcoord13,6
lda,[wMomBankDigitCursorPosition]
ldc,a
ldb,0
addhl,bc
ld[hl]," "
.skip
callWaitBGMap
jr.loop
.pressedB
scf
ret
.pressedA
anda
ret
; 165b9
.dpadaction:; 165b9
ldhl,hJoyLast
lda,[hl]
andD_UP
jrnz,.incrementdigit
lda,[hl]
andD_DOWN
jrnz,.decrementdigit
lda,[hl]
andD_LEFT
jrnz,.movecursorleft
lda,[hl]
andD_RIGHT
jrnz,.movecursorright
anda
ret
.movecursorleft
ldhl,wMomBankDigitCursorPosition
lda,[hl]
anda
retz
dec[hl]
ret
.movecursorright
ldhl,wMomBankDigitCursorPosition
lda,[hl]
cp5
retnc
inc[hl]
ret
.incrementdigit
ldhl,.DigitQuantities
call.getdigitquantity
ldc,l
ldb,h
ldde,StringBuffer2
callbaGiveMoney
ret
.decrementdigit
ldhl,.DigitQuantities
call.getdigitquantity
ldc,l
ldb,h
ldde,StringBuffer2
callbaTakeMoney
ret
; 16607
.getdigitquantity:; 16607
lda,[wMomBankDigitCursorPosition]
pushde
lde,a
ldd,0
rept3
addhl,de
endr
popde
ret
; 16613
.DigitQuantities:; 16613
dt100000
dt10000
dt1000
dt100
dt10
dt1
dt100000
dt10000
dt1000
dt100
dt10
dt1
dt900000
dt90000
dt9000
dt900
dt90
dt9
; 16649
UnknownText_0x16649:; 0x16649
; Wow, that's a cute #MON. Where did you get it? … So, you're leaving on an adventure… OK! I'll help too. But what can I do for you? I know! I'll save money for you. On a long journey, money's important. Do you want me to save your money?
text_jumpUnknownText_0x1bd77f
db"@"
; 0x1664e
UnknownText_0x1664e:; 0x1664e
; OK, I'll take care of your money.
text_jumpUnknownText_0x1bd868
db"@"
; 0x16653
UnknownText_0x16653:; 0x16653
; Be careful. #MON are your friends. You need to work as a team. Now, go on!
text_jumpUnknownText_0x1bd88e
db"@"
; 0x16658
UnknownText_0x16658:; 0x16658
; Hi! Welcome home! You're trying very hard, I see. I've kept your room tidy. Or is this about your money?
text_jumpUnknownText_0x1bd8da
db"@"
; 0x1665d
UnknownText_0x1665d:; 0x1665d
; What do you want to do?
text_jumpUnknownText_0x1bd942
db"@"
; 0x16662
UnknownText_0x16662:; 0x16662
; How much do you want to save?
text_jumpUnknownText_0x1bd95b
db"@"
; 0x16667
UnknownText_0x16667:; 0x16667
; How much do you want to take?
text_jumpUnknownText_0x1bd97a
db"@"
; 0x1666c
UnknownText_0x1666c:; 0x1666c
; Do you want to save some money?
text_jumpUnknownText_0x1bd999
db"@"
; 0x16671
UnknownText_0x16671:; 0x16671
; You haven't saved that much.
text_jumpUnknownText_0x1bd9ba
db"@"
; 0x16676
UnknownText_0x16676:; 0x16676
; You can't take that much.
text_jumpUnknownText_0x1bd9d7
db"@"
; 0x1667b
UnknownText_0x1667b:; 0x1667b
; You don't have that much.
text_jumpUnknownText_0x1bd9f1
db"@"
; 0x16680
UnknownText_0x16680:; 0x16680
; You can't save that much.
text_jumpUnknownText_0x1bda0b
db"@"
; 0x16685
UnknownText_0x16685:; 0x16685
; OK, I'll save your money. Trust me! , stick with it!