Add daily+weekly bit flags (close issue #429)

This commit is contained in:
Rangi
2018-01-22 15:59:24 -05:00
parent 3a7f518de4
commit efe6981a0d
14 changed files with 68 additions and 47 deletions

View File

@@ -98,7 +98,7 @@ GetFishGroupIndex: ; 9245b
push hl
ld hl, wDailyFlags
bit 2, [hl]
bit DAILYFLAGS_FISH_SWARM_F, [hl]
pop hl
jr z, .done

View File

@@ -44,7 +44,7 @@ GetCurTreeFruit: ; 44041
TryResetFruitTrees: ; 4404c
ld hl, wDailyFlags
bit 4, [hl]
bit DAILYFLAGS_ALL_FRUIT_TREES_F, [hl]
ret nz
jp ResetFruitTrees
; 44055
@@ -71,7 +71,7 @@ ResetFruitTrees: ; 4406a
ld [hli], a
ld [hl], a
ld hl, wDailyFlags
set 4, [hl]
set DAILYFLAGS_ALL_FRUIT_TREES_F, [hl]
ret
; 44078

View File

@@ -56,7 +56,7 @@ Special_GiveShuckle: ; 7305
; Engine flag for this event.
ld hl, wDailyFlags
set 5, [hl] ; ENGINE_SHUCKLE_GIVEN
set DAILYFLAGS_GOT_SHUCKIE_TODAY_F, [hl]
ld a, 1
ld [ScriptVar], a
ret