You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
wWeeklyFlags -> wDailyFlags2
These are by far not always checked each week, and as such shouldn't be called that. Since they're almost always used through the `bit` instruction, it's very inconvenient to just make wDailyFlags a `dw` instead.
This commit is contained in:
@@ -1558,8 +1558,8 @@ BuenasPassword4:
|
||||
jp c, BuenasPassword8
|
||||
ld a, [wBuenasPassword]
|
||||
; If we already generated the password today, we don't need to generate a new one.
|
||||
ld hl, wWeeklyFlags
|
||||
bit WEEKLYFLAGS_BUENAS_PASSWORD_F, [hl]
|
||||
ld hl, wDailyFlags2
|
||||
bit DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
||||
jr nz, .AlreadyGotIt
|
||||
; There are only 11 groups to choose from.
|
||||
.greater_than_11
|
||||
@@ -1580,8 +1580,8 @@ BuenasPassword4:
|
||||
add e
|
||||
ld [wBuenasPassword], a
|
||||
; Set the flag so that we don't generate a new password this week.
|
||||
ld hl, wWeeklyFlags
|
||||
set WEEKLYFLAGS_BUENAS_PASSWORD_F, [hl]
|
||||
ld hl, wDailyFlags2
|
||||
set DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
||||
.AlreadyGotIt:
|
||||
ld c, a
|
||||
call GetBuenasPassword
|
||||
@@ -1701,15 +1701,15 @@ BuenasPassword7:
|
||||
|
||||
BuenasPasswordAfterMidnight:
|
||||
push hl
|
||||
ld hl, wWeeklyFlags
|
||||
res WEEKLYFLAGS_BUENAS_PASSWORD_F, [hl]
|
||||
ld hl, wDailyFlags2
|
||||
res DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
||||
pop hl
|
||||
ld a, BUENAS_PASSWORD_8
|
||||
jp NextRadioLine
|
||||
|
||||
BuenasPassword8:
|
||||
ld hl, wWeeklyFlags
|
||||
res WEEKLYFLAGS_BUENAS_PASSWORD_F, [hl]
|
||||
ld hl, wDailyFlags2
|
||||
res DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
||||
ld hl, BuenaRadioMidnightText10
|
||||
ld a, BUENAS_PASSWORD_9
|
||||
jp NextRadioLine
|
||||
@@ -1776,8 +1776,8 @@ BuenasPassword20:
|
||||
farcall NoRadioName
|
||||
pop af
|
||||
ld [hBGMapMode], a
|
||||
ld hl, wWeeklyFlags
|
||||
res WEEKLYFLAGS_BUENAS_PASSWORD_F, [hl]
|
||||
ld hl, wDailyFlags2
|
||||
res DAILYFLAGS2_BUENAS_PASSWORD_F, [hl]
|
||||
ld a, BUENAS_PASSWORD
|
||||
ld [wCurrentRadioLine], a
|
||||
xor a
|
||||
|
Reference in New Issue
Block a user