You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Create a fourth time of day (#2)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user