Create a fourth time of day (#2)

This commit is contained in:
xCrystal
2023-07-31 12:27:53 +02:00
parent 05448d7a7e
commit 9df4cf6946
30 changed files with 270 additions and 123 deletions

View File

@@ -15,5 +15,5 @@ CheckTime::
db MORN_F, MORN
db DAY_F, DAY
db NITE_F, NITE
db NITE_F, NITE
db EVE_F, EVE
db -1

View File

@@ -181,11 +181,10 @@ GetCaughtLevel:
GetCaughtTime:
ld a, [wSeerCaughtData]
and CAUGHT_TIME_MASK
jr z, .none
rlca
rlca
dec a
maskbits NUM_DAYTIMES
ld hl, .times
call GetNthString
ld d, h
@@ -195,15 +194,11 @@ GetCaughtTime:
and a
ret
.none
ld de, wSeerTimeOfDay
call UnknownCaughtData
ret
.times
db "Morning@"
db "Day@"
db "Night@"
db "Evening@"
UnknownCaughtData:
ld hl, .unknown

View File

@@ -63,6 +63,8 @@ PokecenterNurseScript:
iftrue .morn
checktime DAY
iftrue .day
checktime EVE
iftrue .eve
checktime NITE
iftrue .nite
sjump .ok
@@ -77,6 +79,11 @@ PokecenterNurseScript:
promptbutton
sjump .ok
.eve
farwritetext NurseEveText
promptbutton
sjump .ok
.nite
farwritetext NurseNiteText
promptbutton