Prefix engine_flags wram addresses with w

This commit is contained in:
xCrystal 2017-12-28 13:15:46 +01:00
parent e2b378f5e3
commit 9457679af8
53 changed files with 270 additions and 270 deletions

View File

@ -16,14 +16,14 @@
const ENGINE_DST const ENGINE_DST
; wUnusedTwoDayTimerOn ; wUnusedTwoDayTimerOn
const ENGINE_0A const ENGINE_0A
; StatusFlags ; wStatusFlags
const ENGINE_POKEDEX const ENGINE_POKEDEX
const ENGINE_UNOWN_DEX const ENGINE_UNOWN_DEX
const ENGINE_POKERUS const ENGINE_POKERUS
const ENGINE_ROCKET_SIGNAL_ON_CH20 const ENGINE_ROCKET_SIGNAL_ON_CH20
const ENGINE_CREDITS_SKIP const ENGINE_CREDITS_SKIP
const ENGINE_BUG_CONTEST_ON ; 10 const ENGINE_BUG_CONTEST_ON ; 10
; StatusFlags2 ; wStatusFlags2
const ENGINE_BUG_CONTEST_TIMER const ENGINE_BUG_CONTEST_TIMER
const ENGINE_SAFARI_ZONE const ENGINE_SAFARI_ZONE
const ENGINE_ROCKETS_IN_RADIO_TOWER const ENGINE_ROCKETS_IN_RADIO_TOWER
@ -31,11 +31,11 @@
const ENGINE_GIVE_POKERUS const ENGINE_GIVE_POKERUS
const ENGINE_FLORIA const ENGINE_FLORIA
const ENGINE_ROCKETS_IN_MAHOGANY const ENGINE_ROCKETS_IN_MAHOGANY
; BikeFlags ; wBikeFlags
const ENGINE_STRENGTH_ACTIVE const ENGINE_STRENGTH_ACTIVE
const ENGINE_ALWAYS_ON_BIKE const ENGINE_ALWAYS_ON_BIKE
const ENGINE_DOWNHILL const ENGINE_DOWNHILL
; JohtoBadges ; wJohtoBadges
const ENGINE_ZEPHYRBADGE const ENGINE_ZEPHYRBADGE
const ENGINE_HIVEBADGE const ENGINE_HIVEBADGE
const ENGINE_PLAINBADGE const ENGINE_PLAINBADGE
@ -44,7 +44,7 @@
const ENGINE_STORMBADGE ; 20 const ENGINE_STORMBADGE ; 20
const ENGINE_GLACIERBADGE const ENGINE_GLACIERBADGE
const ENGINE_RISINGBADGE const ENGINE_RISINGBADGE
; KantoBadges ; wKantoBadges
const ENGINE_BOULDERBADGE const ENGINE_BOULDERBADGE
const ENGINE_CASCADEBADGE const ENGINE_CASCADEBADGE
const ENGINE_THUNDERBADGE const ENGINE_THUNDERBADGE
@ -53,7 +53,7 @@
const ENGINE_MARSHBADGE const ENGINE_MARSHBADGE
const ENGINE_VOLCANOBADGE const ENGINE_VOLCANOBADGE
const ENGINE_EARTHBADGE const ENGINE_EARTHBADGE
; UnlockedUnowns ; wUnlockedUnowns
const ENGINE_UNLOCKED_UNOWNS_1 const ENGINE_UNLOCKED_UNOWNS_1
const ENGINE_UNLOCKED_UNOWNS_2 const ENGINE_UNLOCKED_UNOWNS_2
const ENGINE_UNLOCKED_UNOWNS_3 const ENGINE_UNLOCKED_UNOWNS_3
@ -62,7 +62,7 @@
const ENGINE_UNLOCKED_UNOWNS_6 ; 30 const ENGINE_UNLOCKED_UNOWNS_6 ; 30
const ENGINE_UNLOCKED_UNOWNS_7 const ENGINE_UNLOCKED_UNOWNS_7
const ENGINE_UNLOCKED_UNOWNS_8 const ENGINE_UNLOCKED_UNOWNS_8
; VisitedSpawns ; wVisitedSpawns
const ENGINE_FLYPOINT_KRISS_HOUSE const ENGINE_FLYPOINT_KRISS_HOUSE
const ENGINE_FLYPOINT_VIRIDIAN_POKECENTER const ENGINE_FLYPOINT_VIRIDIAN_POKECENTER
const ENGINE_FLYPOINT_PALLET const ENGINE_FLYPOINT_PALLET
@ -92,9 +92,9 @@
const ENGINE_FLYPOINT_UNUSED const ENGINE_FLYPOINT_UNUSED
; wLuckyNumberShowFlag ; wLuckyNumberShowFlag
const ENGINE_LUCKY_NUMBER_SHOW const ENGINE_LUCKY_NUMBER_SHOW
; StatusFlags2 ; wStatusFlags2
const ENGINE_4F const ENGINE_4F
; DailyFlags ; wDailyFlags
const ENGINE_KURT_MAKING_BALLS ; 50 const ENGINE_KURT_MAKING_BALLS ; 50
const ENGINE_DAILY_BUG_CONTEST const ENGINE_DAILY_BUG_CONTEST
const ENGINE_SPECIAL_WILDDATA const ENGINE_SPECIAL_WILDDATA
@ -103,7 +103,7 @@
const ENGINE_SHUCKLE_GIVEN const ENGINE_SHUCKLE_GIVEN
const ENGINE_GOLDENROD_UNDERGROUND_MERCHANT_CLOSED const ENGINE_GOLDENROD_UNDERGROUND_MERCHANT_CLOSED
const ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY const ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
; WeeklyFlags ; wWeeklyFlags
const ENGINE_MT_MOON_SQUARE_CLEFAIRY const ENGINE_MT_MOON_SQUARE_CLEFAIRY
const ENGINE_UNION_CAVE_LAPRAS const ENGINE_UNION_CAVE_LAPRAS
const ENGINE_GOLDENROD_UNDERGROUND_GOT_HAIRCUT const ENGINE_GOLDENROD_UNDERGROUND_GOT_HAIRCUT
@ -112,12 +112,12 @@
const ENGINE_INDIGO_PLATEAU_RIVAL_FIGHT const ENGINE_INDIGO_PLATEAU_RIVAL_FIGHT
const ENGINE_DAILY_MOVE_TUTOR const ENGINE_DAILY_MOVE_TUTOR
const ENGINE_BUENAS_PASSWORD const ENGINE_BUENAS_PASSWORD
; SwarmFlags ; wSwarmFlags
const ENGINE_BUENAS_PASSWORD_2 ; 60 const ENGINE_BUENAS_PASSWORD_2 ; 60
const ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON const ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON
; GameTimerPause ; wGameTimerPause
const ENGINE_62 const ENGINE_62
; PlayerGender ; wPlayerGender
const ENGINE_PLAYER_IS_FEMALE const ENGINE_PLAYER_IS_FEMALE
; wCelebiEvent ; wCelebiEvent
const ENGINE_HAVE_EXAMINED_GS_BALL const ENGINE_HAVE_EXAMINED_GS_BALL
@ -184,7 +184,7 @@
const ENGINE_ERIN_SATURDAY_NIGHT const ENGINE_ERIN_SATURDAY_NIGHT
; wPlayerSpriteSetupFlags ; wPlayerSpriteSetupFlags
const ENGINE_KRIS_IN_CABLE_CLUB const ENGINE_KRIS_IN_CABLE_CLUB
; SwarmFlags ; wSwarmFlags
const ENGINE_DUNSPARCE_SWARM ; a0 const ENGINE_DUNSPARCE_SWARM ; a0
const ENGINE_YANMA_SWARM const ENGINE_YANMA_SWARM
NUM_ENGINE_FLAGS EQU const_value NUM_ENGINE_FLAGS EQU const_value

View File

@ -131,7 +131,7 @@ DAY_CARE_DEPOSIT EQU 3
const DEXMODE_ABC const DEXMODE_ABC
const DEXMODE_UNOWN const DEXMODE_UNOWN
; JohtoBadges: ; wJohtoBadges:
const_def const_def
const ZEPHYRBADGE const ZEPHYRBADGE
const HIVEBADGE const HIVEBADGE
@ -143,7 +143,7 @@ DAY_CARE_DEPOSIT EQU 3
const RISINGBADGE const RISINGBADGE
NUM_JOHTO_BADGES EQU const_value NUM_JOHTO_BADGES EQU const_value
; KantoBadges: ; wKantoBadges:
const_def const_def
const BOULDERBADGE const BOULDERBADGE
const CASCADEBADGE const CASCADEBADGE

View File

@ -26,110 +26,110 @@ EngineFlags: ; 80462
engine_flag wUnusedTwoDayTimerOn, 0 ; unused, possibly related to a 2-day timer engine_flag wUnusedTwoDayTimerOn, 0 ; unused, possibly related to a 2-day timer
engine_flag StatusFlags, 0 ; pokedex engine_flag wStatusFlags, 0 ; pokedex
engine_flag StatusFlags, 1 ; unown dex engine_flag wStatusFlags, 1 ; unown dex
engine_flag StatusFlags, 3 ; pokerus engine_flag wStatusFlags, 3 ; pokerus
engine_flag StatusFlags, 4 ; rocket signal on ch20 engine_flag wStatusFlags, 4 ; rocket signal on ch20
engine_flag StatusFlags, 6 ; credits skip engine_flag wStatusFlags, 6 ; credits skip
engine_flag StatusFlags, 7 ; bug contest on ; $10 engine_flag wStatusFlags, 7 ; bug contest on ; $10
engine_flag StatusFlags2, 2 ; bug contest timer engine_flag wStatusFlags2, 2 ; bug contest timer
engine_flag StatusFlags2, 1 ; safari zone? engine_flag wStatusFlags2, 1 ; safari zone?
engine_flag StatusFlags2, 0 ; rockets in radio tower engine_flag wStatusFlags2, 0 ; rockets in radio tower
engine_flag StatusFlags2, 4 ; bike shop call enabled (1024 bike steps reqd) engine_flag wStatusFlags2, 4 ; bike shop call enabled (1024 bike steps reqd)
engine_flag StatusFlags2, 5 ; give pokerus engine_flag wStatusFlags2, 5 ; give pokerus
engine_flag StatusFlags2, 6 ; berry -> berry juice when trading? engine_flag wStatusFlags2, 6 ; berry -> berry juice when trading?
engine_flag StatusFlags2, 7 ; rockets in mahogany engine_flag wStatusFlags2, 7 ; rockets in mahogany
engine_flag BikeFlags, 0 ; strength active ; $18 engine_flag wBikeFlags, 0 ; strength active ; $18
engine_flag BikeFlags, 1 ; always on bike (cant surf) engine_flag wBikeFlags, 1 ; always on bike (cant surf)
engine_flag BikeFlags, 2 ; downhill (cycling road) engine_flag wBikeFlags, 2 ; downhill (cycling road)
engine_flag JohtoBadges, 0 ; zephyrbadge engine_flag wJohtoBadges, 0 ; zephyrbadge
engine_flag JohtoBadges, 1 ; hivebadge engine_flag wJohtoBadges, 1 ; hivebadge
engine_flag JohtoBadges, 2 ; plainbadge engine_flag wJohtoBadges, 2 ; plainbadge
engine_flag JohtoBadges, 3 ; fogbadge engine_flag wJohtoBadges, 3 ; fogbadge
engine_flag JohtoBadges, 4 ; mineralbadge engine_flag wJohtoBadges, 4 ; mineralbadge
engine_flag JohtoBadges, 5 ; stormbadge ; $20 engine_flag wJohtoBadges, 5 ; stormbadge ; $20
engine_flag JohtoBadges, 6 ; glacierbadge engine_flag wJohtoBadges, 6 ; glacierbadge
engine_flag JohtoBadges, 7 ; risingbadge engine_flag wJohtoBadges, 7 ; risingbadge
engine_flag KantoBadges, 0 ; boulderbadge engine_flag wKantoBadges, 0 ; boulderbadge
engine_flag KantoBadges, 1 ; cascadebadge engine_flag wKantoBadges, 1 ; cascadebadge
engine_flag KantoBadges, 2 ; thunderbadge engine_flag wKantoBadges, 2 ; thunderbadge
engine_flag KantoBadges, 3 ; rainbowbadge engine_flag wKantoBadges, 3 ; rainbowbadge
engine_flag KantoBadges, 4 ; soulbadge engine_flag wKantoBadges, 4 ; soulbadge
engine_flag KantoBadges, 5 ; marshbadge ; $28 engine_flag wKantoBadges, 5 ; marshbadge ; $28
engine_flag KantoBadges, 6 ; volcanobadge engine_flag wKantoBadges, 6 ; volcanobadge
engine_flag KantoBadges, 7 ; earthbadge engine_flag wKantoBadges, 7 ; earthbadge
; unown sets ; unown sets
engine_flag UnlockedUnowns, 0 ; 1 engine_flag wUnlockedUnowns, 0 ; 1
engine_flag UnlockedUnowns, 1 ; 2 engine_flag wUnlockedUnowns, 1 ; 2
engine_flag UnlockedUnowns, 2 ; 3 engine_flag wUnlockedUnowns, 2 ; 3
engine_flag UnlockedUnowns, 3 ; 4 engine_flag wUnlockedUnowns, 3 ; 4
engine_flag UnlockedUnowns, 4 ; 5 engine_flag wUnlockedUnowns, 4 ; 5
engine_flag UnlockedUnowns, 5 ; 6 ; $30 engine_flag wUnlockedUnowns, 5 ; 6 ; $30
engine_flag UnlockedUnowns, 6 ; 7 engine_flag wUnlockedUnowns, 6 ; 7
engine_flag UnlockedUnowns, 7 ; 8 engine_flag wUnlockedUnowns, 7 ; 8
; fly ; fly
engine_flag VisitedSpawns, 0 ; your house engine_flag wVisitedSpawns, 0 ; your house
engine_flag VisitedSpawns, 1 ; viridian pokecenter engine_flag wVisitedSpawns, 1 ; viridian pokecenter
engine_flag VisitedSpawns, 2 ; pallet engine_flag wVisitedSpawns, 2 ; pallet
engine_flag VisitedSpawns, 3 ; viridian engine_flag wVisitedSpawns, 3 ; viridian
engine_flag VisitedSpawns, 4 ; pewter engine_flag wVisitedSpawns, 4 ; pewter
engine_flag VisitedSpawns, 5 ; cerulean ; $38 engine_flag wVisitedSpawns, 5 ; cerulean ; $38
engine_flag VisitedSpawns, 6 ; rock tunnel engine_flag wVisitedSpawns, 6 ; rock tunnel
engine_flag VisitedSpawns, 7 ; vermilion engine_flag wVisitedSpawns, 7 ; vermilion
engine_flag VisitedSpawns + 1, 0 ; lavender engine_flag wVisitedSpawns + 1, 0 ; lavender
engine_flag VisitedSpawns + 1, 1 ; saffron engine_flag wVisitedSpawns + 1, 1 ; saffron
engine_flag VisitedSpawns + 1, 2 ; celadon engine_flag wVisitedSpawns + 1, 2 ; celadon
engine_flag VisitedSpawns + 1, 3 ; fuchsia engine_flag wVisitedSpawns + 1, 3 ; fuchsia
engine_flag VisitedSpawns + 1, 4 ; cinnabar engine_flag wVisitedSpawns + 1, 4 ; cinnabar
engine_flag VisitedSpawns + 1, 5 ; indigo plateau ; $40 engine_flag wVisitedSpawns + 1, 5 ; indigo plateau ; $40
engine_flag VisitedSpawns + 1, 6 ; new bark engine_flag wVisitedSpawns + 1, 6 ; new bark
engine_flag VisitedSpawns + 1, 7 ; cherrygrove engine_flag wVisitedSpawns + 1, 7 ; cherrygrove
engine_flag VisitedSpawns + 2, 0 ; violet engine_flag wVisitedSpawns + 2, 0 ; violet
; union cave ; union cave
engine_flag VisitedSpawns + 2, 2 ; azalea engine_flag wVisitedSpawns + 2, 2 ; azalea
engine_flag VisitedSpawns + 2, 3 ; cianwood engine_flag wVisitedSpawns + 2, 3 ; cianwood
engine_flag VisitedSpawns + 2, 4 ; goldenrod engine_flag wVisitedSpawns + 2, 4 ; goldenrod
engine_flag VisitedSpawns + 2, 5 ; olivine engine_flag wVisitedSpawns + 2, 5 ; olivine
engine_flag VisitedSpawns + 2, 6 ; ecruteak ; $48 engine_flag wVisitedSpawns + 2, 6 ; ecruteak ; $48
engine_flag VisitedSpawns + 2, 7 ; mahogany engine_flag wVisitedSpawns + 2, 7 ; mahogany
engine_flag VisitedSpawns + 3, 0 ; lake of rage engine_flag wVisitedSpawns + 3, 0 ; lake of rage
engine_flag VisitedSpawns + 3, 1 ; blackthorn engine_flag wVisitedSpawns + 3, 1 ; blackthorn
engine_flag VisitedSpawns + 3, 2 ; silver cave engine_flag wVisitedSpawns + 3, 2 ; silver cave
; fast ship ; fast ship
engine_flag VisitedSpawns + 3, 4 ; unused engine_flag wVisitedSpawns + 3, 4 ; unused
engine_flag wLuckyNumberShowFlag, 0 ; lucky number show engine_flag wLuckyNumberShowFlag, 0 ; lucky number show
engine_flag StatusFlags2, 3 ; ???? engine_flag wStatusFlags2, 3 ; ????
engine_flag DailyFlags, 0 ; kurt making balls ; $50 engine_flag wDailyFlags, 0 ; kurt making balls ; $50
engine_flag DailyFlags, 1 ; ???? engine_flag wDailyFlags, 1 ; ????
engine_flag DailyFlags, 2 ; special wilddata? engine_flag wDailyFlags, 2 ; special wilddata?
engine_flag DailyFlags, 3 ; time capsule (24h wait) engine_flag wDailyFlags, 3 ; time capsule (24h wait)
engine_flag DailyFlags, 4 ; all fruit trees engine_flag wDailyFlags, 4 ; all fruit trees
engine_flag DailyFlags, 5 ; shuckle given engine_flag wDailyFlags, 5 ; shuckle given
engine_flag DailyFlags, 6 ; goldenrod underground merchant closed engine_flag wDailyFlags, 6 ; goldenrod underground merchant closed
engine_flag DailyFlags, 7 ; fought in trainer hall today engine_flag wDailyFlags, 7 ; fought in trainer hall today
engine_flag WeeklyFlags, 0 ; mt moon square clefairy ; $58 engine_flag wWeeklyFlags, 0 ; mt moon square clefairy ; $58
engine_flag WeeklyFlags, 1 ; union cave lapras engine_flag wWeeklyFlags, 1 ; union cave lapras
engine_flag WeeklyFlags, 2 ; goldenrod underground haircut used engine_flag wWeeklyFlags, 2 ; goldenrod underground haircut used
engine_flag WeeklyFlags, 3 ; goldenrod mall happiness event floor05 object07 engine_flag wWeeklyFlags, 3 ; goldenrod mall happiness event floor05 object07
engine_flag WeeklyFlags, 4 ; tea in blues house engine_flag wWeeklyFlags, 4 ; tea in blues house
engine_flag WeeklyFlags, 5 ; indigo plateau rival fight engine_flag wWeeklyFlags, 5 ; indigo plateau rival fight
engine_flag WeeklyFlags, 6 ; move tutor engine_flag wWeeklyFlags, 6 ; move tutor
engine_flag WeeklyFlags, 7 ; buenas password engine_flag wWeeklyFlags, 7 ; buenas password
engine_flag SwarmFlags, 0 ; buenas password 2 engine_flag wSwarmFlags, 0 ; buenas password 2
engine_flag SwarmFlags, 1 ; goldenrod dept store sale is on engine_flag wSwarmFlags, 1 ; goldenrod dept store sale is on
engine_flag GameTimerPause, 7 ; $62 engine_flag wGameTimerPause, 7 ; $62
engine_flag PlayerGender, 0 ; player is female engine_flag wPlayerGender, 0 ; player is female
engine_flag wCelebiEvent, 2 ; have gs ball after kurt examined it engine_flag wCelebiEvent, 2 ; have gs ball after kurt examined it
@ -200,7 +200,7 @@ EngineFlags: ; 80462
engine_flag wPlayerSpriteSetupFlags, 2 ; female player has been transformed into male engine_flag wPlayerSpriteSetupFlags, 2 ; female player has been transformed into male
engine_flag SwarmFlags, 2 ; dunsparce swarm ; $a0 engine_flag wSwarmFlags, 2 ; dunsparce swarm ; $a0
engine_flag SwarmFlags, 3 ; yanma swarm engine_flag wSwarmFlags, 3 ; yanma swarm
; 80648 ; 80648

View File

@ -6695,7 +6695,7 @@ CheckSleepingTreeMon: ; 3eb38
CheckUnownLetter: ; 3eb75 CheckUnownLetter: ; 3eb75
; Return carry if the Unown letter hasn't been unlocked yet ; Return carry if the Unown letter hasn't been unlocked yet
ld a, [UnlockedUnowns] ld a, [wUnlockedUnowns]
ld c, a ld c, a
ld de, 0 ld de, 0
@ -7074,7 +7074,7 @@ BadgeStatBoosts: ; 3ed45
and a and a
ret nz ret nz
ld a, [JohtoBadges] ld a, [wJohtoBadges]
; Swap badges 3 (PlainBadge) and 5 (MineralBadge). ; Swap badges 3 (PlainBadge) and 5 (MineralBadge).
ld d, a ld d, a
@ -9349,7 +9349,7 @@ GetTrainerBackpic: ; 3fbff
ld a, [wPlayerSpriteSetupFlags] ld a, [wPlayerSpriteSetupFlags]
bit 2, a ; transformed to male bit 2, a ; transformed to male
jr nz, .Chris jr nz, .Chris
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .Chris jr z, .Chris

View File

@ -726,7 +726,7 @@ BattleCommand_CheckObedience: ; 343db
.obeylevel .obeylevel
; The maximum obedience level is constrained by owned badges: ; The maximum obedience level is constrained by owned badges:
ld hl, JohtoBadges ld hl, wJohtoBadges
; risingbadge ; risingbadge
bit RISINGBADGE, [hl] bit RISINGBADGE, [hl]

View File

@ -176,9 +176,9 @@ DoBadgeTypeBoosts: ; fbe24
ld hl, .BadgeTypes ld hl, .BadgeTypes
ld a, [KantoBadges] ld a, [wKantoBadges]
ld b, a ld b, a
ld a, [JohtoBadges] ld a, [wJohtoBadges]
ld c, a ld c, a
.CheckBadge: .CheckBadge:

View File

@ -193,7 +193,7 @@ SetBoxmonOrEggmonCaughtData: ; 4db53
.NotPokecenter2F: .NotPokecenter2F:
call GetWorldMapLocation call GetWorldMapLocation
ld b, a ld b, a
ld a, [PlayerGender] ld a, [wPlayerGender]
rrca rrca
or b or b
ld [hl], a ld [hl], a

View File

@ -183,7 +183,7 @@ InitPartyMenuBGPal0: ; 8e9f
; 8eb9 ; 8eb9
_CGB_PokegearPals: ; 8eb9 _CGB_PokegearPals: ; 8eb9
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .male jr z, .male
ld hl, FemalePokegearPals ld hl, FemalePokegearPals
@ -719,7 +719,7 @@ _CGB_TrainerCard: ; 9289
; fill screen with opposite-gender palette for the card border ; fill screen with opposite-gender palette for the card border
hlcoord 0, 0, AttrMap hlcoord 0, 0, AttrMap
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
ld a, [PlayerGender] ld a, [wPlayerGender]
and a and a
ld a, $1 ; kris ld a, $1 ; kris
jr z, .got_gender jr z, .got_gender
@ -729,7 +729,7 @@ _CGB_TrainerCard: ; 9289
; fill trainer sprite area with same-gender palette ; fill trainer sprite area with same-gender palette
hlcoord 14, 1, AttrMap hlcoord 14, 1, AttrMap
lb bc, 7, 5 lb bc, 7, 5
ld a, [PlayerGender] ld a, [wPlayerGender]
and a and a
ld a, $0 ; chris ld a, $0 ; chris
jr z, .got_gender2 jr z, .got_gender2
@ -768,7 +768,7 @@ _CGB_TrainerCard: ; 9289
ld a, $7 ; pryce ld a, $7 ; pryce
call FillBoxCGB call FillBoxCGB
; clair uses kris's palette ; clair uses kris's palette
ld a, [PlayerGender] ld a, [wPlayerGender]
and a and a
push af push af
jr z, .got_gender3 jr z, .got_gender3
@ -847,7 +847,7 @@ _CGB_PackPals: ; 93d3
cp BATTLETYPE_TUTORIAL cp BATTLETYPE_TUTORIAL
jr z, .tutorial_male jr z, .tutorial_male
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .tutorial_male jr z, .tutorial_male

View File

@ -718,7 +718,7 @@ GetPlayerOrMonPalettePointer:
ld a, [wPlayerSpriteSetupFlags] ld a, [wPlayerSpriteSetupFlags]
bit 2, a ; transformed to male bit 2, a ; transformed to male
jr nz, .male jr nz, .male
ld a, [PlayerGender] ld a, [wPlayerGender]
and a and a
jr z, .male jr z, .male
ld hl, KrisPalette ld hl, KrisPalette

View File

@ -491,7 +491,7 @@ CheckTimeEvents: ; 9693a
and a and a
jr nz, .nothing jr nz, .nothing
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 2, [hl] ; bug contest bit 2, [hl] ; bug contest
jr z, .do_daily jr z, .do_daily

View File

@ -8,7 +8,7 @@ PlayWhirlpoolSound: ; 8c7d4
BlindingFlash: ; 8c7e1 BlindingFlash: ; 8c7e1
farcall FadeOutPalettes farcall FadeOutPalettes
ld hl, StatusFlags ld hl, wStatusFlags
set 2, [hl] ; Flash set 2, [hl] ; Flash
farcall ReplaceTimeOfDayPals farcall ReplaceTimeOfDayPals
farcall UpdateTimeOfDayPal farcall UpdateTimeOfDayPal

View File

@ -97,7 +97,7 @@ GetFishGroupIndex: ; 9245b
; Return the index of fishgroup d in de. ; Return the index of fishgroup d in de.
push hl push hl
ld hl, DailyFlags ld hl, wDailyFlags
bit 2, [hl] bit 2, [hl]
pop hl pop hl
jr z, .done jr z, .done

View File

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

View File

@ -2,7 +2,7 @@ HALLOFFAME_COLON EQU $63
HallOfFame:: ; 0x8640e HallOfFame:: ; 0x8640e
call HallOfFame_FadeOutMusic call HallOfFame_FadeOutMusic
ld a, [StatusFlags] ld a, [wStatusFlags]
push af push af
ld a, 1 ld a, 1
ld [wGameLogicPaused], a ld [wGameLogicPaused], a
@ -11,7 +11,7 @@ HallOfFame:: ; 0x8640e
ld [wSpawnAfterChampion], a ld [wSpawnAfterChampion], a
; Enable the Pokégear map to cycle through all of Kanto ; Enable the Pokégear map to cycle through all of Kanto
ld hl, StatusFlags ld hl, wStatusFlags
set 6, [hl] ; hall of fame set 6, [hl] ; hall of fame
farcall HallOfFame_InitSaveIfNeeded farcall HallOfFame_InitSaveIfNeeded
@ -52,7 +52,7 @@ RedCredits:: ; 86455
call DisableSpriteUpdates call DisableSpriteUpdates
ld a, SPAWN_RED ld a, SPAWN_RED
ld [wSpawnAfterChampion], a ld [wSpawnAfterChampion], a
ld a, [StatusFlags] ld a, [wStatusFlags]
ld b, a ld b, a
farcall Credits farcall Credits
ret ret

View File

@ -328,7 +328,7 @@ MagnetTrain_Jumptable: ; 8cdf7
push af push af
ld a, $1 ld a, $1
ld [rSVBK], a ld [rSVBK], a
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .got_gender jr z, .got_gender
ld b, SPRITE_ANIM_INDEX_MAGNET_TRAIN_BLUE ld b, SPRITE_ANIM_INDEX_MAGNET_TRAIN_BLUE

View File

@ -358,7 +358,7 @@ SurfFunction: ; c909
ld de, ENGINE_FOGBADGE ld de, ENGINE_FOGBADGE
call CheckBadge call CheckBadge
jr c, .asm_c956 jr c, .asm_c956
ld hl, BikeFlags ld hl, wBikeFlags
bit 1, [hl] ; always on bike bit 1, [hl] ; always on bike
jr nz, .cannotsurf jr nz, .cannotsurf
ld a, [PlayerState] ld a, [PlayerState]
@ -520,7 +520,7 @@ TrySurfOW:: ; c9e7
call CheckPartyMove call CheckPartyMove
jr c, .quit jr c, .quit
ld hl, BikeFlags ld hl, wBikeFlags
bit 1, [hl] ; always on bike (can't surf) bit 1, [hl] ; always on bike (can't surf)
jr nz, .quit jr nz, .quit
@ -1008,7 +1008,7 @@ StrengthFunction: ; cce5
ret ret
SetStrengthFlag: ; cd12 SetStrengthFlag: ; cd12
ld hl, BikeFlags ld hl, wBikeFlags
set 0, [hl] set 0, [hl]
ld a, [CurPartyMon] ld a, [CurPartyMon]
ld e, a ld e, a
@ -1086,7 +1086,7 @@ TryStrengthOW: ; cd78
call CheckEngineFlag call CheckEngineFlag
jr c, .nope jr c, .nope
ld hl, BikeFlags ld hl, wBikeFlags
bit 0, [hl] bit 0, [hl]
jr z, .already_using jr z, .already_using
@ -1683,7 +1683,7 @@ BikeFunction: ; d0b3
ret ret
.GetOffBike: .GetOffBike:
ld hl, BikeFlags ld hl, wBikeFlags
bit 1, [hl] bit 1, [hl]
jr nz, .CantGetOffBike jr nz, .CantGetOffBike
ld hl, Script_GetOffBike ld hl, Script_GetOffBike

View File

@ -18,7 +18,7 @@ GivePokerusAndConvertBerries: ; 2ed44
; If we haven't been to Goldenrod City at least once, ; If we haven't been to Goldenrod City at least once,
; prevent the contraction of Pokerus. ; prevent the contraction of Pokerus.
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 6, [hl] bit 6, [hl]
ret z ret z
call Random call Random
@ -123,7 +123,7 @@ GivePokerusAndConvertBerries: ; 2ed44
; any berry held by a Shuckle may be converted to berry juice ; any berry held by a Shuckle may be converted to berry juice
ConvertBerriesToBerryJuice: ; 2ede6 ConvertBerriesToBerryJuice: ; 2ede6
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 6, [hl] bit 6, [hl]
ret z ret z
call Random call Random

View File

@ -53,7 +53,7 @@ SpecialGiveShuckle: ; 7305
call CopyName2 call CopyName2
; Engine flag for this event. ; Engine flag for this event.
ld hl, DailyFlags ld hl, wDailyFlags
set 5, [hl] set 5, [hl]
; setflag ENGINE_SHUCKLE_GIVEN ; setflag ENGINE_SHUCKLE_GIVEN
ld a, 1 ld a, 1

View File

@ -36,7 +36,7 @@ SweetScentNothing: ; 0x506e9
SweetScentEncounter: ; 506ef SweetScentEncounter: ; 506ef
farcall CanUseSweetScent farcall CanUseSweetScent
jr nc, .no_battle jr nc, .no_battle
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 2, [hl] bit 2, [hl]
jr nz, .not_in_bug_contest jr nz, .not_in_bug_contest
farcall GetMapEncounterRate farcall GetMapEncounterRate

View File

@ -2,7 +2,7 @@
WarpToSpawnPoint:: ; 97c28 WarpToSpawnPoint:: ; 97c28
ld hl, StatusFlags2 ld hl, wStatusFlags2
res 1, [hl] ; safari zone? res 1, [hl] ; safari zone?
res 2, [hl] ; bug contest res 2, [hl] ; bug contest
ret ret
@ -108,7 +108,7 @@ RandomEncounter:: ; 97cc0
jr c, .nope jr c, .nope
call CanUseSweetScent call CanUseSweetScent
jr nc, .nope jr nc, .nope
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 2, [hl] ; bug contest bit 2, [hl] ; bug contest
jr nz, .bug_contest jr nz, .bug_contest
farcall TryWildEncounter farcall TryWildEncounter
@ -149,7 +149,7 @@ WildBattleScript: ; 97cf9
; 97cfd ; 97cfd
CanUseSweetScent:: ; 97cfd CanUseSweetScent:: ; 97cfd
ld hl, StatusFlags ld hl, wStatusFlags
bit 5, [hl] bit 5, [hl]
jr nz, .no jr nz, .no
ld a, [wEnvironment] ld a, [wEnvironment]
@ -263,7 +263,7 @@ DoBikeStep:: ; 97db3
; If the bike shop owner doesn't have our number, or ; If the bike shop owner doesn't have our number, or
; if we've already gotten the call, we don't have to ; if we've already gotten the call, we don't have to
; be here. ; be here.
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 4, [hl] ; bike shop call bit 4, [hl] ; bike shop call
jr z, .NoCall jr z, .NoCall
@ -314,7 +314,7 @@ DoBikeStep:: ; 97db3
ld [wSpecialPhoneCallID], a ld [wSpecialPhoneCallID], a
xor a xor a
ld [wSpecialPhoneCallID + 1], a ld [wSpecialPhoneCallID + 1], a
ld hl, StatusFlags2 ld hl, wStatusFlags2
res 4, [hl] ; bike shop call res 4, [hl] ; bike shop call
scf scf
ret ret

View File

@ -648,7 +648,7 @@ LoadFishingGFX: ; b84b3
ld [rVBK], a ld [rVBK], a
ld de, FishingGFX ld de, FishingGFX
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .got_gender jr z, .got_gender
ld de, KrisFishingGFX ld de, KrisFishingGFX

View File

@ -3,7 +3,7 @@ InitCrystalData: ; 48000
ld [wd474], a ld [wd474], a
xor a xor a
ld [wd473], a ld [wd473], a
ld [PlayerGender], a ld [wPlayerGender], a
ld [wd475], a ld [wd475], a
ld [wd476], a ld [wd476], a
ld [wd477], a ld [wd477], a
@ -37,7 +37,7 @@ InitGender: ; 48dcb (12:4dcb)
call CloseWindow call CloseWindow
ld a, [wMenuCursorY] ld a, [wMenuCursorY]
dec a dec a
ld [PlayerGender], a ld [wPlayerGender], a
ld c, 10 ld c, 10
call DelayFrames call DelayFrames
ret ret

View File

@ -193,8 +193,8 @@ _ResetWRAM: ; 5bae
xor a xor a
ld [MonType], a ld [MonType], a
ld [JohtoBadges], a ld [wJohtoBadges], a
ld [KantoBadges], a ld [wKantoBadges], a
ld [Coins], a ld [Coins], a
ld [Coins + 1], a ld [Coins + 1], a
@ -483,7 +483,7 @@ FinishContinueFunction: ; 5e5d
xor a xor a
ld [wDontPlayMapMusicOnReload], a ld [wDontPlayMapMusicOnReload], a
ld [wLinkMode], a ld [wLinkMode], a
ld hl, GameTimerPause ld hl, wGameTimerPause
set 0, [hl] set 0, [hl]
res 7, [hl] res 7, [hl]
ld hl, wEnteredMapFromContinue ld hl, wEnteredMapFromContinue
@ -540,7 +540,7 @@ Continue_LoadMenuHeader: ; 5ebf
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
ld hl, .MenuDataHeader_Dex ld hl, .MenuDataHeader_Dex
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 0, a ; pokedex bit 0, a ; pokedex
jr nz, .pokedex_header jr nz, .pokedex_header
ld hl, .MenuDataHeader_NoDex ld hl, .MenuDataHeader_NoDex
@ -631,7 +631,7 @@ Continue_UnknownGameTime: ; 5f48
Continue_DisplayBadgeCount: ; 5f58 Continue_DisplayBadgeCount: ; 5f58
push hl push hl
ld hl, JohtoBadges ld hl, wJohtoBadges
ld b, 2 ld b, 2
call CountSetBits call CountSetBits
pop hl pop hl
@ -641,7 +641,7 @@ Continue_DisplayBadgeCount: ; 5f58
; 5f6b ; 5f6b
Continue_DisplayPokedexNumCaught: ; 5f6b Continue_DisplayPokedexNumCaught: ; 5f6b
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 0, a ; Pokedex bit 0, a ; Pokedex
ret z ret z
push hl push hl
@ -813,7 +813,7 @@ NamePlayer: ; 0x6074
ld hl, PlayerName ld hl, PlayerName
ld de, .Chris ld de, .Chris
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .Male jr z, .Male
ld de, .Kris ld de, .Kris
@ -989,7 +989,7 @@ Intro_PlacePlayerSprite: ; 61cd
ld [hli], a ld [hli], a
ld b, 0 ld b, 0
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .male jr z, .male
ld b, 1 ld b, 1

View File

@ -9,7 +9,7 @@ MainMenu: ; 49cdc
ld b, SCGB_DIPLOMA ld b, SCGB_DIPLOMA
call GetSGBLayout call GetSGBLayout
call SetPalettes call SetPalettes
ld hl, GameTimerPause ld hl, wGameTimerPause
res 0, [hl] res 0, [hl]
call MainMenu_GetWhichMenu call MainMenu_GetWhichMenu
ld [wWhichIndexSet], a ld [wWhichIndexSet], a
@ -168,7 +168,7 @@ MainMenu_GetWhichMenu: ; 49da4
cp -1 cp -1
call CloseSRAM call CloseSRAM
jr nz, .mystery_gift jr nz, .mystery_gift
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 7, a bit 7, a
ld a, $1 ; Continue ld a, $1 ; Continue
jr z, .ok jr z, .ok
@ -182,7 +182,7 @@ MainMenu_GetWhichMenu: ; 49da4
ret ret
.mystery_gift .mystery_gift
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 7, a bit 7, a
jr z, .ok3 jr z, .ok3
jr .ok3 jr .ok3

View File

@ -168,7 +168,7 @@ CheckReplaceKrisSprite: ; 154f7
.CheckBiking: ; 1550c (5:550c) .CheckBiking: ; 1550c (5:550c)
and a and a
ld hl, BikeFlags ld hl, wBikeFlags
bit 1, [hl] bit 1, [hl]
ret z ret z
ld a, PLAYER_BIKE ld a, PLAYER_BIKE

View File

@ -58,7 +58,7 @@ BargainShop: ; 15a84
ld a, [hli] ld a, [hli]
or [hl] or [hl]
jr z, .skip_set jr z, .skip_set
ld hl, DailyFlags ld hl, wDailyFlags
set 6, [hl] set 6, [hl]
.skip_set .skip_set
@ -81,7 +81,7 @@ Pharmacist: ; 15aae
RooftopSale: ; 15ac4 RooftopSale: ; 15ac4
ld b, BANK(RooftopSaleData1) ld b, BANK(RooftopSaleData1)
ld de, RooftopSaleData1 ld de, RooftopSaleData1
ld hl, StatusFlags ld hl, wStatusFlags
bit 6, [hl] ; hall of fame bit 6, [hl] ; hall of fame
jr z, .ok jr z, .ok
ld b, BANK(RooftopSaleData2) ld b, BANK(RooftopSaleData2)

View File

@ -64,7 +64,7 @@ GetPlayerSprite: ; 14183
ld a, [wPlayerSpriteSetupFlags] ld a, [wPlayerSpriteSetupFlags]
bit 2, a bit 2, a
jr nz, .go jr nz, .go
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .go jr z, .go
ld hl, .Kris ld hl, .Kris

View File

@ -1294,7 +1294,7 @@ DrawPackGFX: ; 1089d
ld a, [BattleType] ld a, [BattleType]
cp BATTLETYPE_TUTORIAL cp BATTLETYPE_TUTORIAL
jr z, .male_dude jr z, .male_dude
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr nz, .female jr nz, .female
.male_dude .male_dude

View File

@ -1,7 +1,7 @@
Function88248: ; 88248 Function88248: ; 88248
; XXX ; XXX
ld c, CAL ld c, CAL
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .okay jr z, .okay
ld c, KAREN ld c, KAREN
@ -58,7 +58,7 @@ MovePlayerPic: ; 88266
ShowPlayerNamingChoices: ; 88297 ShowPlayerNamingChoices: ; 88297
ld hl, ChrisNameMenuHeader ld hl, ChrisNameMenuHeader
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .GotGender jr z, .GotGender
ld hl, KrisNameMenuHeader ld hl, KrisNameMenuHeader
@ -76,7 +76,7 @@ INCLUDE "data/default_names.asm"
GetPlayerNameArray: ; 88318 This Function is never called GetPlayerNameArray: ; 88318 This Function is never called
ld hl, PlayerName ld hl, PlayerName
ld de, MalePlayerNameArray ld de, MalePlayerNameArray
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .done jr z, .done
ld de, FemalePlayerNameArray ld de, FemalePlayerNameArray
@ -92,7 +92,7 @@ GetPlayerIcon: ; 8832c
ld de, ChrisSpriteGFX ld de, ChrisSpriteGFX
ld b, BANK(ChrisSpriteGFX) ld b, BANK(ChrisSpriteGFX)
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .done jr z, .done
@ -105,7 +105,7 @@ GetPlayerIcon: ; 8832c
GetCardPic: ; 8833e GetCardPic: ; 8833e
ld hl, ChrisCardPic ld hl, ChrisCardPic
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .GotClass jr z, .GotClass
ld hl, KrisCardPic ld hl, KrisCardPic
@ -131,7 +131,7 @@ CardGFX: ; 887c5
INCBIN "gfx/trainer_card/trainer_card.2bpp" INCBIN "gfx/trainer_card/trainer_card.2bpp"
GetPlayerBackpic: ; 88825 GetPlayerBackpic: ; 88825
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, GetChrisBackpic jr z, GetChrisBackpic
call GetKrisBackpic call GetKrisBackpic
@ -150,7 +150,7 @@ HOF_LoadTrainerFrontpic: ; 88840
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
ld e, 0 ld e, 0
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .GotClass jr z, .GotClass
ld e, 1 ld e, 1
@ -159,7 +159,7 @@ HOF_LoadTrainerFrontpic: ; 88840
ld a, e ld a, e
ld [TrainerClass], a ld [TrainerClass], a
ld de, ChrisPic ld de, ChrisPic
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .GotPic jr z, .GotPic
ld de, KrisPic ld de, KrisPic
@ -179,7 +179,7 @@ DrawIntroPlayerPic: ; 88874
; Get class ; Get class
ld e, CHRIS ld e, CHRIS
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .GotClass jr z, .GotClass
ld e, KRIS ld e, KRIS
@ -189,7 +189,7 @@ DrawIntroPlayerPic: ; 88874
; Load pic ; Load pic
ld de, ChrisPic ld de, ChrisPic
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .GotPic jr z, .GotPic
ld de, KrisPic ld de, KrisPic

View File

@ -18,7 +18,7 @@ DoPlayerMovement:: ; 80000
; Standing downhill instead moves down. ; Standing downhill instead moves down.
ld hl, BikeFlags ld hl, wBikeFlags
bit 2, [hl] ; downhill bit 2, [hl] ; downhill
ret z ret z
@ -285,7 +285,7 @@ DoPlayerMovement:: ; 80000
call .BikeCheck call .BikeCheck
jr nz, .walk jr nz, .walk
ld hl, BikeFlags ld hl, wBikeFlags
bit 2, [hl] ; downhill bit 2, [hl] ; downhill
jr z, .fast jr z, .fast
@ -672,7 +672,7 @@ DoPlayerMovement:: ; 80000
.CheckStrengthBoulder: ; 8036f .CheckStrengthBoulder: ; 8036f
ld hl, BikeFlags ld hl, wBikeFlags
bit 0, [hl] ; using strength bit 0, [hl] ; using strength
jr z, .not_boulder jr z, .not_boulder

View File

@ -33,7 +33,7 @@ SpawnPlayer: ; 8029
ld a, [wPlayerSpriteSetupFlags] ld a, [wPlayerSpriteSetupFlags]
bit 2, a bit 2, a
jr nz, .ok jr nz, .ok
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .ok jr z, .ok
ln e, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT ln e, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT

View File

@ -103,7 +103,7 @@ InitPokedex: ; 40063
ret ret
Pokedex_CheckUnlockedUnownMode: ; 400a2 Pokedex_CheckUnlockedUnownMode: ; 400a2
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 1, a bit 1, a
jr nz, .unlocked jr nz, .unlocked

View File

@ -657,7 +657,7 @@ PokegearMap_InitPlayerIcon: ; 9106a
push af push af
depixel 0, 0 depixel 0, 0
ld b, SPRITE_ANIM_INDEX_RED_WALK ld b, SPRITE_ANIM_INDEX_RED_WALK
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .got_gender jr z, .got_gender
ld b, SPRITE_ANIM_INDEX_BLUE_WALK ld b, SPRITE_ANIM_INDEX_BLUE_WALK
@ -734,7 +734,7 @@ PokegearMap_UpdateCursorPosition: ; 910d4
; 910e8 ; 910e8
TownMap_GetKantoLandmarkLimits: ; 910e8 TownMap_GetKantoLandmarkLimits: ; 910e8
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 6, a bit 6, a
jr z, .not_hof jr z, .not_hof
ld d, ROUTE_28 ld d, ROUTE_28
@ -1583,7 +1583,7 @@ RadioChannels:
.EvolutionRadio: .EvolutionRadio:
; This station airs in the Lake of Rage area when Rocket are still in Mahogany. ; This station airs in the Lake of Rage area when Rocket are still in Mahogany.
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 4, a bit 4, a
jr z, .NoSignal jr z, .NoSignal
ld a, [wPokegearMapPlayerIconLandmark] ld a, [wPokegearMapPlayerIconLandmark]
@ -1669,7 +1669,7 @@ LoadStation_BuenasPassword: ; 917a5 (24:57a5)
ld hl, PlayRadioShow ld hl, PlayRadioShow
call Radio_BackUpFarCallParams call Radio_BackUpFarCallParams
ld de, NotBuenasPasswordName ld de, NotBuenasPasswordName
ld a, [StatusFlags2] ld a, [wStatusFlags2]
bit 0, a bit 0, a
ret z ret z
ld de, BuenasPasswordName ld de, BuenasPasswordName
@ -2329,7 +2329,7 @@ CheckIfVisitedFlypoint: ; 91c3c
HasVisitedSpawn: ; 91c50 HasVisitedSpawn: ; 91c50
; Check if spawn point c has been visited. ; Check if spawn point c has been visited.
ld hl, VisitedSpawns ld hl, wVisitedSpawns
ld b, CHECK_FLAG ld b, CHECK_FLAG
ld d, 0 ld d, 0
predef FlagPredef predef FlagPredef
@ -2530,7 +2530,7 @@ _Area: ; 91d11
ret ret
.right .right
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 6, a ; hall of fame bit 6, a ; hall of fame
ret z ret z
ld a, [hWY] ld a, [hWY]
@ -2659,7 +2659,7 @@ _Area: ; 91d11
inc de inc de
push bc push bc
ld c, 0 ; RED ld c, 0 ; RED
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .got_gender jr z, .got_gender
inc c ; BLUE inc c ; BLUE
@ -2886,7 +2886,7 @@ TownMapPlayerIcon: ; 91fa6
; Animation/palette ; Animation/palette
depixel 0, 0 depixel 0, 0
ld b, SPRITE_ANIM_INDEX_RED_WALK ; Male ld b, SPRITE_ANIM_INDEX_RED_WALK ; Male
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .got_gender jr z, .got_gender
ld b, SPRITE_ANIM_INDEX_BLUE_WALK ; Female ld b, SPRITE_ANIM_INDEX_BLUE_WALK ; Female

View File

@ -4,7 +4,7 @@ PlayRadioShow:
cp POKE_FLUTE_RADIO cp POKE_FLUTE_RADIO
jr nc, .ok jr nc, .ok
; If Team Rocket is not occupying the radio tower, we don't need to be here. ; If Team Rocket is not occupying the radio tower, we don't need to be here.
ld a, [StatusFlags2] ld a, [wStatusFlags2]
bit 0, a ; checkflag ENGINE_ROCKETS_IN_RADIO_TOWER bit 0, a ; checkflag ENGINE_ROCKETS_IN_RADIO_TOWER
jr z, .ok jr z, .ok
; If we're in Kanto, we don't need to be here. ; If we're in Kanto, we don't need to be here.
@ -1176,11 +1176,11 @@ PeoplePlaces4: ; People
jr nc, PeoplePlaces4 jr nc, PeoplePlaces4
push af push af
ld hl, .E4Names ld hl, .E4Names
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 6, a ; ENGINE_CREDITS_SKIP bit 6, a ; ENGINE_CREDITS_SKIP
jr z, .ok jr z, .ok
ld hl, .KantoLeaderNames ld hl, .KantoLeaderNames
ld a, [KantoBadges] ld a, [wKantoBadges]
cp %11111111 cp %11111111
jr nz, .ok jr nz, .ok
ld hl, .MiscNames ld hl, .MiscNames
@ -1571,7 +1571,7 @@ BuenasPassword4:
jp c, BuenasPassword8 jp c, BuenasPassword8
ld a, [wBuenasPassword] ld a, [wBuenasPassword]
; If we already generated the password today, we don't need to generate a new one. ; If we already generated the password today, we don't need to generate a new one.
ld hl, WeeklyFlags ld hl, wWeeklyFlags
bit 7, [hl] bit 7, [hl]
jr nz, .AlreadyGotIt jr nz, .AlreadyGotIt
; There are only 11 groups to choose from. ; There are only 11 groups to choose from.
@ -1593,7 +1593,7 @@ BuenasPassword4:
add e add e
ld [wBuenasPassword], a ld [wBuenasPassword], a
; Set the flag so that we don't generate a new password this week. ; Set the flag so that we don't generate a new password this week.
ld hl, WeeklyFlags ld hl, wWeeklyFlags
set 7, [hl] set 7, [hl]
.AlreadyGotIt: .AlreadyGotIt:
ld c, a ld c, a
@ -1737,14 +1737,14 @@ BuenasPassword7:
BuenasPasswordAfterMidnight: BuenasPasswordAfterMidnight:
push hl push hl
ld hl, WeeklyFlags ld hl, wWeeklyFlags
res 7, [hl] res 7, [hl]
pop hl pop hl
ld a, BUENAS_PASSWORD_8 ld a, BUENAS_PASSWORD_8
jp NextRadioLine jp NextRadioLine
BuenasPassword8: BuenasPassword8:
ld hl, WeeklyFlags ld hl, wWeeklyFlags
res 7, [hl] res 7, [hl]
ld hl, BuenaRadioMidnightText10 ld hl, BuenaRadioMidnightText10
ld a, BUENAS_PASSWORD_9 ld a, BUENAS_PASSWORD_9
@ -1812,7 +1812,7 @@ BuenasPassword20:
farcall NoRadioName farcall NoRadioName
pop af pop af
ld [hBGMapMode], a ld [hBGMapMode], a
ld hl, WeeklyFlags ld hl, wWeeklyFlags
res 7, [hl] res 7, [hl]
ld a, BUENAS_PASSWORD ld a, BUENAS_PASSWORD
ld [wCurrentRadioLine], a ld [wCurrentRadioLine], a

View File

@ -691,8 +691,8 @@ TryLoadSaveData: ; 14f1c
ld de, StartDay ld de, StartDay
ld bc, 8 ld bc, 8
call CopyBytes call CopyBytes
ld hl, sPlayerData + StatusFlags - wPlayerData ld hl, sPlayerData + wStatusFlags - wPlayerData
ld de, StatusFlags ld de, wStatusFlags
ld a, [hl] ld a, [hl]
ld [de], a ld [de], a
call CloseSRAM call CloseSRAM
@ -710,8 +710,8 @@ TryLoadSaveData: ; 14f1c
ld de, StartDay ld de, StartDay
ld bc, 8 ld bc, 8
call CopyBytes call CopyBytes
ld hl, sBackupPlayerData + StatusFlags - wPlayerData ld hl, sBackupPlayerData + wStatusFlags - wPlayerData
ld de, StatusFlags ld de, wStatusFlags
ld a, [hl] ld a, [hl]
ld [de], a ld [de], a
call CloseSRAM call CloseSRAM

View File

@ -2609,14 +2609,14 @@ _EngineFlagAction:
Script_wildoff: Script_wildoff:
; script command 0x38 ; script command 0x38
ld hl, StatusFlags ld hl, wStatusFlags
set 5, [hl] set 5, [hl]
ret ret
Script_wildon: Script_wildon:
; script command 0x37 ; script command 0x37
ld hl, StatusFlags ld hl, wStatusFlags
res 5, [hl] res 5, [hl]
ret ret
@ -2991,12 +2991,12 @@ Script_end_all:
Script_halloffame: Script_halloffame:
; script command 0xa1 ; script command 0xa1
ld hl, GameTimerPause ld hl, wGameTimerPause
res 0, [hl] res 0, [hl]
farcall TrainerRankings_HallOfFame farcall TrainerRankings_HallOfFame
farcall TrainerRankings_HallOfFame2 farcall TrainerRankings_HallOfFame2
farcall HallOfFame farcall HallOfFame
ld hl, GameTimerPause ld hl, wGameTimerPause
set 0, [hl] set 0, [hl]
jr ReturnFromCredits jr ReturnFromCredits

View File

@ -7,7 +7,7 @@ StartMenu:: ; 125cd
farcall ReanchorBGMap_NoOAMUpdate farcall ReanchorBGMap_NoOAMUpdate
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 2, [hl] ; bug catching contest bit 2, [hl] ; bug catching contest
ld hl, .MenuDataHeader ld hl, .MenuDataHeader
jr z, .GotMenuData jr z, .GotMenuData
@ -284,7 +284,7 @@ endr
ld [wWhichIndexSet], a ld [wWhichIndexSet], a
call .FillMenuList call .FillMenuList
ld hl, StatusFlags ld hl, wStatusFlags
bit 0, [hl] bit 0, [hl]
jr z, .no_pokedex jr z, .no_pokedex
ld a, 0 ; pokedex ld a, 0 ; pokedex
@ -301,7 +301,7 @@ endr
ld a, [wLinkMode] ld a, [wLinkMode]
and a and a
jr nz, .no_pack jr nz, .no_pack
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 2, [hl] ; bug catching contest bit 2, [hl] ; bug catching contest
jr nz, .no_pack jr nz, .no_pack
ld a, 2 ; pack ld a, 2 ; pack
@ -321,7 +321,7 @@ endr
ld a, [wLinkMode] ld a, [wLinkMode]
and a and a
jr nz, .no_save jr nz, .no_save
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 2, [hl] ; bug catching contest bit 2, [hl] ; bug catching contest
ld a, 8 ; quit ld a, 8 ; quit
jr nz, .write jr nz, .write
@ -390,7 +390,7 @@ endr
; 128d1 ; 128d1
.DrawBugContestStatusBox: ; 128d1 .DrawBugContestStatusBox: ; 128d1
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 2, [hl] ; bug catching contest bit 2, [hl] ; bug catching contest
ret z ret z
farcall StartMenu_DrawBugContestStatusBox farcall StartMenu_DrawBugContestStatusBox
@ -398,7 +398,7 @@ endr
; 128de ; 128de
.DrawBugContestStatus: ; 128de .DrawBugContestStatus: ; 128de
ld hl, StatusFlags2 ld hl, wStatusFlags2
bit 2, [hl] ; bug catching contest bit 2, [hl] ; bug catching contest
jr nz, .contest jr nz, .contest
ret ret

View File

@ -101,7 +101,7 @@ CheckDailyResetTimer:: ; 11452
call CheckDayDependentEventHL call CheckDayDependentEventHL
ret nc ret nc
xor a xor a
ld hl, DailyFlags ld hl, wDailyFlags
ld [hli], a ld [hli], a
ld [hli], a ld [hli], a
ld [hli], a ld [hli], a
@ -226,14 +226,14 @@ CheckUnusedTwoDayTimer: ; 1150c
; 1151c ; 1151c
; XXX ; XXX
ld hl, DailyFlags ld hl, wDailyFlags
set 2, [hl] set 2, [hl]
ret ret
; 11522 ; 11522
; XXX ; XXX
and a and a
ld hl, DailyFlags ld hl, wDailyFlags
bit 2, [hl] bit 2, [hl]
ret nz ret nz
scf scf

View File

@ -215,7 +215,7 @@ ReplaceTimeOfDayPals: ; 8c0e5
ret ret
.DarkCave: .DarkCave:
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 2, a ; Flash bit 2, a ; Flash
jr nz, .UsedFlash jr nz, .UsedFlash
ld a, %11111111 ; 3, 3, 3, 3 ld a, %11111111 ; 3, 3, 3, 3

View File

@ -120,7 +120,7 @@ TrainerCard_Page1_Joypad: ; 251d7 (9:51d7)
.KantoCheck: .KantoCheck:
; unreferenced ; unreferenced
ld a, [KantoBadges] ld a, [wKantoBadges]
and a and a
ret z ret z
ld a, $4 ld a, $4
@ -166,7 +166,7 @@ TrainerCard_Page2_Joypad: ; 25221 (9:5221)
.KantoCheck: .KantoCheck:
; unreferenced ; unreferenced
ld a, [KantoBadges] ld a, [wKantoBadges]
and a and a
ret z ret z
ld a, $4 ld a, $4
@ -281,7 +281,7 @@ TrainerCard_Page1_PrintDexCaught_GameTime: ; 2530a (9:530a)
hlcoord 2, 8 hlcoord 2, 8
ld de, .StatusTilemap ld de, .StatusTilemap
call TrainerCardSetup_PlaceTilemapString call TrainerCardSetup_PlaceTilemapString
ld a, [StatusFlags] ; pokedex ld a, [wStatusFlags]
bit 0, a bit 0, a
ret nz ret nz
hlcoord 1, 9 hlcoord 1, 9
@ -562,7 +562,7 @@ TrainerCard_JohtoBadgesOAM: ; 254c9
; cycle 1: face tile, in1 tile, in2 tile, in3 tile ; cycle 1: face tile, in1 tile, in2 tile, in3 tile
; cycle 2: face tile, in1 tile, in2 tile, in3 tile ; cycle 2: face tile, in1 tile, in2 tile, in3 tile
dw JohtoBadges dw wJohtoBadges
; Zephyrbadge ; Zephyrbadge
db $68, $18, 0 db $68, $18, 0

View File

@ -336,7 +336,7 @@ ChooseWildEncounter: ; 2a14f
cp UNOWN cp UNOWN
jr nz, .done jr nz, .done
ld a, [UnlockedUnowns] ld a, [wUnlockedUnowns]
and a and a
jr z, .nowildbattle jr z, .nowildbattle
@ -428,7 +428,7 @@ _JohtoWildmonCheck
_SwarmWildmonCheck _SwarmWildmonCheck
call CopyCurrMapDE call CopyCurrMapDE
push hl push hl
ld hl, SwarmFlags ld hl, wSwarmFlags
bit 2, [hl] bit 2, [hl]
pop hl pop hl
jr z, .CheckYanma jr z, .CheckYanma
@ -445,7 +445,7 @@ _SwarmWildmonCheck
.CheckYanma: .CheckYanma:
push hl push hl
ld hl, SwarmFlags ld hl, wSwarmFlags
bit 3, [hl] bit 3, [hl]
pop hl pop hl
jr z, _NoSwarmWildmon jr z, _NoSwarmWildmon

View File

@ -461,7 +461,7 @@ SpecialMapMusic:: ; 3d62
cp PLAYER_SURF_PIKA cp PLAYER_SURF_PIKA
jr z, .surf jr z, .surf
ld a, [StatusFlags2] ld a, [wStatusFlags2]
bit 2, a bit 2, a
jr nz, .contest jr nz, .contest

View File

@ -7,7 +7,7 @@ ResetMapBufferEventFlags:: ; 2e50
ResetBikeFlags:: ; 2e56 ResetBikeFlags:: ; 2e56
xor a xor a
ld hl, BikeFlags ld hl, wBikeFlags
ld [hli], a ld [hli], a
ld [hl], a ld [hl], a
ret ret
@ -22,7 +22,7 @@ ResetFlashIfOutOfCave:: ; 2e5d
ret ret
.asm_2e69 .asm_2e69
ld hl, StatusFlags ld hl, wStatusFlags
res 2, [hl] res 2, [hl]
ret ret
; 2e6f ; 2e6f

View File

@ -38,7 +38,7 @@ UpdateGameTimer:: ; 20ad
ret nz ret nz
; Is the timer paused? ; Is the timer paused?
ld hl, GameTimerPause ld hl, wGameTimerPause
bit 0, [hl] bit 0, [hl]
ret z ret z

View File

@ -2305,7 +2305,7 @@ GetMapHeaderMusic:: ; 2cbd
ret ret
.radiotower .radiotower
ld a, [StatusFlags2] ld a, [wStatusFlags2]
bit 0, a bit 0, a
jr z, .clearedradiotower jr z, .clearedradiotower
ld de, MUSIC_ROCKET_OVERTURE ld de, MUSIC_ROCKET_OVERTURE
@ -2320,7 +2320,7 @@ GetMapHeaderMusic:: ; 2cbd
jr .done jr .done
.mahoganymart .mahoganymart
ld a, [StatusFlags2] ld a, [wStatusFlags2]
bit 7, a bit 7, a
jr z, .clearedmahogany jr z, .clearedmahogany
ld de, MUSIC_ROCKET_HIDEOUT ld de, MUSIC_ROCKET_HIDEOUT

View File

@ -400,7 +400,7 @@ PlaceGenderedPlayerName:: ; 1252
call PlaceString call PlaceString
ld h, b ld h, b
ld l, c ld l, c
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
ld de, String_kun ld de, String_kun
jr z, PlaceCommandCharacter jr z, PlaceCommandCharacter

View File

@ -110,7 +110,7 @@ Function170139: ; 170139
ld bc, NAME_LENGTH_JAPANESE - 1 ld bc, NAME_LENGTH_JAPANESE - 1
call CopyBytes call CopyBytes
ld bc, PlayerID ld bc, PlayerID
ld de, PlayerGender ld de, wPlayerGender
farcall GetMobileOTTrainerClass farcall GetMobileOTTrainerClass
ld de, wBT_OTTempPkmn1CaughtGender ld de, wBT_OTTempPkmn1CaughtGender
ld a, c ld a, c

View File

@ -84,7 +84,7 @@ InitMobileProfile: ; 4802f (12:402f)
ld a, [wd002] ld a, [wd002]
bit 6, a bit 6, a
jr nz, .asm_48113 jr nz, .asm_48113
ld a, [PlayerGender] ld a, [wPlayerGender]
ld hl, Strings_484fb ld hl, Strings_484fb
call GetNthString call GetNthString
ld d, h ld d, h
@ -298,7 +298,7 @@ asm_4828d: ; 4828d (12:428d)
ld de, String_484ff ld de, String_484ff
call PlaceString call PlaceString
call WaitBGMap call WaitBGMap
ld a, [PlayerGender] ld a, [wPlayerGender]
inc a inc a
ld [wMenuCursorBuffer], a ld [wMenuCursorBuffer], a
call StaticMenuJoypad call StaticMenuJoypad
@ -316,11 +316,11 @@ asm_4828d: ; 4828d (12:428d)
cp $50 cp $50
jr nz, .asm_482e1 jr nz, .asm_482e1
ld a, $1 ld a, $1
ld [PlayerGender], a ld [wPlayerGender], a
jr .asm_482f1 jr .asm_482f1
.asm_482ed .asm_482ed
xor a xor a
ld [PlayerGender], a ld [wPlayerGender], a
.asm_482f1 .asm_482f1
ld d, h ld d, h
ld e, l ld e, l
@ -804,10 +804,10 @@ Function4873c: ; 4873c (12:473c)
ld a, A_BUTTON ld a, A_BUTTON
add B_BUTTON add B_BUTTON
ld [hli], a ; joypad filter ld [hli], a ; joypad filter
; ld a, [PlayerGender] ; ld a, [wPlayerGender]
; xor 1 ; xor 1
; inc a ; inc a
ld a, [PlayerGender] ld a, [wPlayerGender]
and a and a
jr z, .male jr z, .male
ld a, 2 ld a, 2

View File

@ -25,17 +25,17 @@ OpenSRAMBank4: ; 89160
Function89168: ; 89168 (22:5168) Function89168: ; 89168 (22:5168)
ld hl, GameTimerPause ld hl, wGameTimerPause
set 7, [hl] set 7, [hl]
ret ret
Function8916e: ; 8916e (22:516e) Function8916e: ; 8916e (22:516e)
ld hl, GameTimerPause ld hl, wGameTimerPause
res 7, [hl] res 7, [hl]
ret ret
Function89174: ; 89174 (22:5174) Function89174: ; 89174 (22:5174)
ld hl, GameTimerPause ld hl, wGameTimerPause
bit 7, [hl] bit 7, [hl]
ret ret
@ -619,7 +619,7 @@ Function89481: ; 89481
Function89492: ; 89492 (22:5492) Function89492: ; 89492 (22:5492)
ld d, 0 ld d, 0
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
ret z ret z
inc d inc d
@ -1269,7 +1269,7 @@ Function897d5: ; 897d5
Function89807: ; 89807 (22:5807) Function89807: ; 89807 (22:5807)
ld hl, MobileAdapterGFX + $200 ld hl, MobileAdapterGFX + $200
ld a, [PlayerGender] ld a, [wPlayerGender]
bit 0, a bit 0, a
jr z, .asm_89814 jr z, .asm_89814
ld hl, MobileAdapterGFX + $200 + $230 ld hl, MobileAdapterGFX + $200 + $230

View File

@ -2543,7 +2543,7 @@ Unknown_100ff3: ; 100ff3
dbwww $80, PlayerName, NAME_LENGTH, NULL dbwww $80, PlayerName, NAME_LENGTH, NULL
dbwww $80, PlayerID, 2, NULL dbwww $80, PlayerID, 2, NULL
dbwww $80, wSecretID, 2, NULL dbwww $80, wSecretID, 2, NULL
dbwww $80, PlayerGender, 1, NULL dbwww $80, wPlayerGender, 1, NULL
dbwww $04, $a603, 8, NULL dbwww $04, $a603, 8, NULL
dbwww $04, $a007, PARTYMON_STRUCT_LENGTH, NULL dbwww $04, $a007, PARTYMON_STRUCT_LENGTH, NULL
db -1 db -1
@ -2812,7 +2812,7 @@ Function1011f1: ; 1011f1
call CloseSRAM call CloseSRAM
ld hl, wdc41 ld hl, wdc41
res 4, [hl] res 4, [hl]
ld hl, GameTimerPause ld hl, wGameTimerPause
bit 7, [hl] bit 7, [hl]
jr z, .skip jr z, .skip
ld hl, wdc41 ld hl, wdc41
@ -4703,7 +4703,7 @@ Function101e98: ; 101e98
call ClearSprites call ClearSprites
farcall Function8adb3 farcall Function8adb3
ret c ret c
ld hl, GameTimerPause ld hl, wGameTimerPause
set 7, [hl] set 7, [hl]
ld hl, wdc41 ld hl, wdc41
set 4, [hl] set 4, [hl]
@ -4711,7 +4711,7 @@ Function101e98: ; 101e98
; 101ead ; 101ead
Function101ead: ; 101ead Function101ead: ; 101ead
ld hl, GameTimerPause ld hl, wGameTimerPause
bit 7, [hl] bit 7, [hl]
jr nz, .asm_101ec8 jr nz, .asm_101ec8
ld hl, wdc41 ld hl, wdc41
@ -7896,7 +7896,7 @@ Function1036f9: ; 1036f9
Function103700: ; 103700 Function103700: ; 103700
ld c, $0a ld c, $0a
ld hl, SwarmFlags ld hl, wSwarmFlags
bit 4, [hl] bit 4, [hl]
jr z, .asm_10370f jr z, .asm_10370f
farcall Function1008a6 farcall Function1008a6
@ -7994,11 +7994,11 @@ Function103780: ; 103780
Function10378c: ; 10378c Function10378c: ; 10378c
ld c, 0 ld c, 0
ld hl, SwarmFlags ld hl, wSwarmFlags
bit 4, [hl] bit 4, [hl]
jr nz, .already_set jr nz, .already_set
ld c, $01 ld c, $01
ld hl, SwarmFlags ld hl, wSwarmFlags
set 4, [hl] set 4, [hl]
.already_set .already_set
@ -8020,7 +8020,7 @@ Function10378c: ; 10378c
ld a, c ld a, c
and a and a
ret z ret z
ld hl, SwarmFlags ld hl, wSwarmFlags
res 4, [hl] res 4, [hl]
ret ret
; 1037c2 ; 1037c2

View File

@ -4401,7 +4401,7 @@ Function11581e: ; 11581e
Function1158c2: ; 1158c2 Function1158c2: ; 1158c2
ld a, e ld a, e
ld [SwarmFlags], a ld [wSwarmFlags], a
ld a, d ld a, d
ld [$dc21], a ld [$dc21], a
xor a xor a
@ -4422,7 +4422,7 @@ Function1158c2: ; 1158c2
ld l, c ld l, c
ld h, b ld h, b
xor a xor a
ld [WeeklyFlags], a ld [wWeeklyFlags], a
.asm_1158e5 .asm_1158e5
ld b, $3 ld b, $3
@ -4447,7 +4447,7 @@ Function1158c2: ; 1158c2
push hl push hl
dec hl dec hl
ld a, c ld a, c
ld [WeeklyFlags], a ld [wWeeklyFlags], a
.asm_115908 .asm_115908
xor a xor a
ld [hld], a ld [hld], a
@ -4468,7 +4468,7 @@ Function1158c2: ; 1158c2
ld [$dc1a], a ld [$dc1a], a
push de push de
push hl push hl
ld hl, SwarmFlags ld hl, wSwarmFlags
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
@ -4562,7 +4562,7 @@ endr
ld a, $a ld a, $a
ld [hli], a ld [hli], a
push hl push hl
ld hl, SwarmFlags ld hl, wSwarmFlags
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
@ -4587,7 +4587,7 @@ endr
jp nz, .asm_1158e5 jp nz, .asm_1158e5
.asm_1159c4 .asm_1159c4
ld a, [WeeklyFlags] ld a, [wWeeklyFlags]
cp $0 cp $0
jr z, .asm_1159d8 jr z, .asm_1159d8
push hl push hl
@ -5061,9 +5061,9 @@ Function115bc8: ; 115bc8
Function115c49: ; 115c49 Function115c49: ; 115c49
ld a, e ld a, e
ld [WeeklyFlags], a ld [wWeeklyFlags], a
ld a, d ld a, d
ld [SwarmFlags], a ld [wSwarmFlags], a
xor a xor a
ld [de], a ld [de], a
inc de inc de
@ -5131,7 +5131,7 @@ endr
ld [$dc1a], a ld [$dc1a], a
push de push de
push hl push hl
ld hl, WeeklyFlags ld hl, wWeeklyFlags
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
@ -5243,9 +5243,9 @@ Function115cfd: ; 115cfd
.asm_115d38 .asm_115d38
push de push de
push hl push hl
ld a, [WeeklyFlags] ld a, [wWeeklyFlags]
ld l, a ld l, a
ld a, [SwarmFlags] ld a, [wSwarmFlags]
ld h, a ld h, a
ld e, [hl] ld e, [hl]
inc hl inc hl

View File

@ -1198,7 +1198,7 @@ BattleTowerRoomMenu_PlacePickLevelMenu:
ld [wcd4f], a ld [wcd4f], a
ld a, $1 ld a, $1
ld [rSVBK], a ld [rSVBK], a
ld a, [StatusFlags] ld a, [wStatusFlags]
bit 6, a ; Hall Of Fame bit 6, a ; Hall Of Fame
jr nz, .asm_11896b jr nz, .asm_11896b
ld hl, Strings_Ll0ToL40 ; Address to list of strings with the choosable levels ld hl, Strings_Ll0ToL40 ; Address to list of strings with the choosable levels

View File

@ -1431,7 +1431,7 @@ wFarCallBCBuffer:: dw ; cfb9
wcfbb:: db wcfbb:: db
GameTimerPause:: ; cfbc wGameTimerPause:: ; cfbc
; bit 0 ; bit 0
db db
@ -2238,7 +2238,7 @@ wBugContestSecsRemaining:: db ; d46d
wMapStatusEnd:: ds 2 ; d470 wMapStatusEnd:: ds 2 ; d470
wCrystalData:: wCrystalData::
PlayerGender:: ; d472 wPlayerGender:: ; d472
; bit 0: ; bit 0:
; 0 male ; 0 male
; 1 female ; 1 female
@ -2348,7 +2348,7 @@ CurTimeOfDay:: db ; d848
ds 1 ds 1
wSecretID:: dw wSecretID:: dw
StatusFlags:: ; d84c wStatusFlags:: ; d84c
; 0 - pokedex ; 0 - pokedex
; 1 - unown dex ; 1 - unown dex
; 2 - ; 2 -
@ -2359,7 +2359,7 @@ StatusFlags:: ; d84c
; 7 - bug contest on ; 7 - bug contest on
db db
StatusFlags2:: ; d84d wStatusFlags2:: ; d84d
; 0 - rockets ; 0 - rockets
; 1 - ; 1 -
; 2 - bug contest timer ; 2 - bug contest timer
@ -2377,8 +2377,8 @@ wMomSavingMoney:: db ; d854
Coins:: dw ; d855 Coins:: dw ; d855
Badges:: Badges::
JohtoBadges:: flag_array NUM_JOHTO_BADGES ; d857 wJohtoBadges:: flag_array NUM_JOHTO_BADGES ; d857
KantoBadges:: flag_array NUM_KANTO_BADGES ; d858 wKantoBadges:: flag_array NUM_KANTO_BADGES ; d858
TMsHMs:: ds NUM_TMS + NUM_HMS ; d859 TMsHMs:: ds NUM_TMS + NUM_HMS ; d859
@ -2557,7 +2557,7 @@ wCelebiEvent:: db
ds 1 ds 1
BikeFlags:: ; dbf5 wBikeFlags:: ; dbf5
; bit 0: using strength ; bit 0: using strength
; bit 1: always on bike ; bit 1: always on bike
; bit 2: downhill ; bit 2: downhill
@ -2599,9 +2599,9 @@ wWhichMomItemSet:: db ; dc18
MomItemTriggerBalance:: ds 3 ; dc19 MomItemTriggerBalance:: ds 3 ; dc19
wDailyResetTimer:: dw ; dc1c wDailyResetTimer:: dw ; dc1c
DailyFlags:: db wDailyFlags:: db
WeeklyFlags:: db wWeeklyFlags:: db
SwarmFlags:: db wSwarmFlags:: db
ds 2 ds 2
wStartDay:: db wStartDay:: db
ds 3 ds 3
@ -2660,7 +2660,7 @@ wPlayerDataEnd::
wMapData:: wMapData::
VisitedSpawns:: flag_array NUM_SPAWNS ; dca5 wVisitedSpawns:: flag_array NUM_SPAWNS ; dca5
wDigWarpNumber:: db ; dcaa wDigWarpNumber:: db ; dcaa
wDigMapGroup:: db ; dcab wDigMapGroup:: db ; dcab
@ -2717,7 +2717,7 @@ PokedexSeen:: flag_array NUM_POKEMON ; deb9
EndPokedexSeen:: EndPokedexSeen::
UnownDex:: ds NUM_UNOWN ; ded9 UnownDex:: ds NUM_UNOWN ; ded9
UnlockedUnowns:: db ; def3 wUnlockedUnowns:: db ; def3
wFirstUnownSeen:: db wFirstUnownSeen:: db
wDayCareMan:: ; def5 wDayCareMan:: ; def5