You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -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:
@@ -41,8 +41,8 @@ GetCurTreeFruit:
|
||||
ret
|
||||
|
||||
TryResetFruitTrees:
|
||||
ld hl, wDailyFlags
|
||||
bit DAILYFLAGS_ALL_FRUIT_TREES_F, [hl]
|
||||
ld hl, wDailyFlags1
|
||||
bit DAILYFLAGS1_ALL_FRUIT_TREES_F, [hl]
|
||||
ret nz
|
||||
jp ResetFruitTrees
|
||||
|
||||
@@ -65,8 +65,8 @@ ResetFruitTrees:
|
||||
ld [hli], a
|
||||
ld [hli], a
|
||||
ld [hl], a
|
||||
ld hl, wDailyFlags
|
||||
set DAILYFLAGS_ALL_FRUIT_TREES_F, [hl]
|
||||
ld hl, wDailyFlags1
|
||||
set DAILYFLAGS1_ALL_FRUIT_TREES_F, [hl]
|
||||
ret
|
||||
|
||||
GetFruitTreeFlag:
|
||||
|
||||
Reference in New Issue
Block a user