2022-06-06 14:25:42 -07:00
|
|
|
MACRO engine_flag
|
2018-01-22 10:00:35 -08:00
|
|
|
; location, bit
|
|
|
|
; (all locations are in WRAM bank 1)
|
|
|
|
dwb \1 + (\2 / 8), 1 << (\2 % 8)
|
2017-12-11 10:47:58 -08:00
|
|
|
ENDM
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
EngineFlags:
|
2018-01-22 10:00:35 -08:00
|
|
|
; entries correspond to ENGINE_* constants
|
2021-03-03 19:22:41 -08:00
|
|
|
table_width 3, EngineFlags
|
2017-12-11 10:47:58 -08:00
|
|
|
|
|
|
|
; pokegear
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wPokegearFlags, POKEGEAR_RADIO_CARD_F
|
2018-01-22 09:03:18 -08:00
|
|
|
engine_flag wPokegearFlags, POKEGEAR_MAP_CARD_F
|
|
|
|
engine_flag wPokegearFlags, POKEGEAR_PHONE_CARD_F
|
|
|
|
engine_flag wPokegearFlags, POKEGEAR_EXPN_CARD_F
|
|
|
|
engine_flag wPokegearFlags, POKEGEAR_OBTAINED_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2018-01-22 10:18:23 -08:00
|
|
|
; day-care
|
|
|
|
engine_flag wDayCareMan, DAYCAREMAN_HAS_EGG_F
|
|
|
|
engine_flag wDayCareMan, DAYCAREMAN_HAS_MON_F
|
|
|
|
engine_flag wDayCareLady, DAYCARELADY_HAS_MON_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wMomSavingMoney, MOM_SAVING_SOME_MONEY_F
|
2018-01-22 10:57:44 -08:00
|
|
|
engine_flag wMomSavingMoney, MOM_ACTIVE_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
|
|
|
engine_flag wUnusedTwoDayTimerOn, 0 ; unused, possibly related to a 2-day timer
|
|
|
|
|
2018-01-22 12:40:43 -08:00
|
|
|
engine_flag wStatusFlags, STATUSFLAGS_POKEDEX_F
|
|
|
|
engine_flag wStatusFlags, STATUSFLAGS_UNOWN_DEX_F
|
|
|
|
engine_flag wStatusFlags, STATUSFLAGS_CAUGHT_POKERUS_F
|
|
|
|
engine_flag wStatusFlags, STATUSFLAGS_ROCKET_SIGNAL_F
|
|
|
|
engine_flag wStatusFlags, STATUSFLAGS_HALL_OF_FAME_F
|
2018-02-25 19:23:20 -08:00
|
|
|
engine_flag wStatusFlags, STATUSFLAGS_MAIN_MENU_MOBILE_CHOICES_F
|
2018-01-22 12:40:43 -08:00
|
|
|
|
|
|
|
engine_flag wStatusFlags2, STATUSFLAGS2_BUG_CONTEST_TIMER_F
|
|
|
|
engine_flag wStatusFlags2, STATUSFLAGS2_SAFARI_GAME_F
|
|
|
|
engine_flag wStatusFlags2, STATUSFLAGS2_ROCKETS_IN_RADIO_TOWER_F
|
|
|
|
engine_flag wStatusFlags2, STATUSFLAGS2_BIKE_SHOP_CALL_F
|
2018-01-31 07:55:35 -08:00
|
|
|
engine_flag wStatusFlags2, STATUSFLAGS2_UNUSED_5_F
|
2018-01-22 12:40:43 -08:00
|
|
|
engine_flag wStatusFlags2, STATUSFLAGS2_REACHED_GOLDENROD_F
|
|
|
|
engine_flag wStatusFlags2, STATUSFLAGS2_ROCKETS_IN_MAHOGANY_F
|
2017-12-28 04:15:46 -08:00
|
|
|
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wBikeFlags, BIKEFLAGS_STRENGTH_ACTIVE_F
|
2018-01-22 10:57:44 -08:00
|
|
|
engine_flag wBikeFlags, BIKEFLAGS_ALWAYS_ON_BIKE_F
|
|
|
|
engine_flag wBikeFlags, BIKEFLAGS_DOWNHILL_F
|
2017-12-28 04:15:46 -08:00
|
|
|
|
2018-01-22 09:03:18 -08:00
|
|
|
engine_flag wJohtoBadges, ZEPHYRBADGE
|
|
|
|
engine_flag wJohtoBadges, HIVEBADGE
|
|
|
|
engine_flag wJohtoBadges, PLAINBADGE
|
|
|
|
engine_flag wJohtoBadges, FOGBADGE
|
|
|
|
engine_flag wJohtoBadges, MINERALBADGE
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wJohtoBadges, STORMBADGE
|
2018-01-22 09:03:18 -08:00
|
|
|
engine_flag wJohtoBadges, GLACIERBADGE
|
|
|
|
engine_flag wJohtoBadges, RISINGBADGE
|
2017-12-28 04:15:46 -08:00
|
|
|
|
2018-01-22 09:03:18 -08:00
|
|
|
engine_flag wKantoBadges, BOULDERBADGE
|
|
|
|
engine_flag wKantoBadges, CASCADEBADGE
|
|
|
|
engine_flag wKantoBadges, THUNDERBADGE
|
|
|
|
engine_flag wKantoBadges, RAINBOWBADGE
|
|
|
|
engine_flag wKantoBadges, SOULBADGE
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wKantoBadges, MARSHBADGE
|
2018-01-22 09:03:18 -08:00
|
|
|
engine_flag wKantoBadges, VOLCANOBADGE
|
|
|
|
engine_flag wKantoBadges, EARTHBADGE
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2018-01-22 10:57:44 -08:00
|
|
|
; unown sets (see data/wild/unlocked_unowns.asm)
|
2022-12-26 10:14:10 -08:00
|
|
|
engine_flag wUnlockedUnowns, UNLOCKED_UNOWNS_A_TO_K_F
|
|
|
|
engine_flag wUnlockedUnowns, UNLOCKED_UNOWNS_L_TO_R_F
|
|
|
|
engine_flag wUnlockedUnowns, UNLOCKED_UNOWNS_S_TO_W_F
|
|
|
|
engine_flag wUnlockedUnowns, UNLOCKED_UNOWNS_X_TO_Z_F
|
2018-01-22 10:57:44 -08:00
|
|
|
engine_flag wUnlockedUnowns, 4 ; unused
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wUnlockedUnowns, 5 ; unused
|
2018-01-22 10:57:44 -08:00
|
|
|
engine_flag wUnlockedUnowns, 6 ; unused
|
|
|
|
engine_flag wUnlockedUnowns, 7 ; unused
|
2017-12-11 10:47:58 -08:00
|
|
|
|
|
|
|
; fly
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wVisitedSpawns, SPAWN_HOME
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_DEBUG
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_PALLET
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_VIRIDIAN
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_PEWTER
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wVisitedSpawns, SPAWN_CERULEAN
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wVisitedSpawns, SPAWN_ROCK_TUNNEL
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_VERMILION
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_LAVENDER
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_SAFFRON
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_CELADON
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_FUCHSIA
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_CINNABAR
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wVisitedSpawns, SPAWN_INDIGO
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wVisitedSpawns, SPAWN_NEW_BARK
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_CHERRYGROVE
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_VIOLET
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_AZALEA
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_CIANWOOD
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_GOLDENROD
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_OLIVINE
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wVisitedSpawns, SPAWN_ECRUTEAK
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wVisitedSpawns, SPAWN_MAHOGANY
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_LAKE_OF_RAGE
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_BLACKTHORN
|
|
|
|
engine_flag wVisitedSpawns, SPAWN_MT_SILVER
|
|
|
|
engine_flag wVisitedSpawns, NUM_SPAWNS ; unused
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2018-01-22 11:34:55 -08:00
|
|
|
engine_flag wLuckyNumberShowFlag, LUCKYNUMBERSHOW_GAME_OVER_F
|
2018-01-22 12:40:43 -08:00
|
|
|
|
2018-01-31 07:55:35 -08:00
|
|
|
engine_flag wStatusFlags2, STATUSFLAGS2_UNUSED_3_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyFlags1, DAILYFLAGS1_KURT_MAKING_BALLS_F
|
2018-08-06 10:43:54 -07:00
|
|
|
engine_flag wDailyFlags1, DAILYFLAGS1_BUG_CONTEST_F
|
|
|
|
engine_flag wDailyFlags1, DAILYFLAGS1_FISH_SWARM_F
|
|
|
|
engine_flag wDailyFlags1, DAILYFLAGS1_TIME_CAPSULE_F
|
|
|
|
engine_flag wDailyFlags1, DAILYFLAGS1_ALL_FRUIT_TREES_F
|
|
|
|
engine_flag wDailyFlags1, DAILYFLAGS1_GOT_SHUCKIE_TODAY_F
|
|
|
|
engine_flag wDailyFlags1, DAILYFLAGS1_GOLDENROD_UNDERGROUND_BARGAIN_F
|
|
|
|
engine_flag wDailyFlags1, DAILYFLAGS1_TRAINER_HOUSE_F
|
|
|
|
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyFlags2, DAILYFLAGS2_MT_MOON_SQUARE_CLEFAIRY_F
|
2018-08-06 10:43:54 -07:00
|
|
|
engine_flag wDailyFlags2, DAILYFLAGS2_UNION_CAVE_LAPRAS_F
|
|
|
|
engine_flag wDailyFlags2, DAILYFLAGS2_GOLDENROD_UNDERGROUND_GOT_HAIRCUT_F
|
|
|
|
engine_flag wDailyFlags2, DAILYFLAGS2_GOLDENROD_DEPT_STORE_TM27_RETURN_F
|
|
|
|
engine_flag wDailyFlags2, DAILYFLAGS2_DAISYS_GROOMING_F
|
|
|
|
engine_flag wDailyFlags2, DAILYFLAGS2_INDIGO_PLATEAU_RIVAL_FIGHT_F
|
|
|
|
engine_flag wDailyFlags2, DAILYFLAGS2_MOVE_TUTOR_F
|
|
|
|
engine_flag wDailyFlags2, DAILYFLAGS2_BUENAS_PASSWORD_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wSwarmFlags, SWARMFLAGS_BUENAS_PASSWORD_F
|
2018-01-22 12:40:43 -08:00
|
|
|
engine_flag wSwarmFlags, SWARMFLAGS_GOLDENROD_DEPT_STORE_SALE_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2020-10-28 10:35:39 -07:00
|
|
|
engine_flag wGameTimerPaused, GAME_TIMER_MOBILE_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2018-01-22 11:34:55 -08:00
|
|
|
engine_flag wPlayerGender, PLAYERGENDER_FEMALE_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2018-01-22 11:34:55 -08:00
|
|
|
engine_flag wCelebiEvent, CELEBIEVENT_FOREST_IS_RESTLESS_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
|
|
|
; rematches
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wDailyRematchFlags, 0 ; jack
|
|
|
|
engine_flag wDailyRematchFlags, 1 ; huey
|
|
|
|
engine_flag wDailyRematchFlags, 2 ; gaven
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyRematchFlags, 3 ; beth
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wDailyRematchFlags, 4 ; jose
|
|
|
|
engine_flag wDailyRematchFlags, 5 ; reena
|
|
|
|
engine_flag wDailyRematchFlags, 6 ; joey
|
|
|
|
engine_flag wDailyRematchFlags, 7 ; wade
|
|
|
|
engine_flag wDailyRematchFlags, 8 ; ralph
|
|
|
|
engine_flag wDailyRematchFlags, 9 ; liz
|
|
|
|
engine_flag wDailyRematchFlags, 10 ; anthony
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyRematchFlags, 11 ; todd
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wDailyRematchFlags, 12 ; gina
|
|
|
|
engine_flag wDailyRematchFlags, 13 ; arnie
|
|
|
|
engine_flag wDailyRematchFlags, 14 ; alan
|
|
|
|
engine_flag wDailyRematchFlags, 15 ; dana
|
|
|
|
engine_flag wDailyRematchFlags, 16 ; chad
|
|
|
|
engine_flag wDailyRematchFlags, 17 ; tully
|
|
|
|
engine_flag wDailyRematchFlags, 18 ; brent
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyRematchFlags, 19 ; tiffany
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wDailyRematchFlags, 20 ; vance
|
|
|
|
engine_flag wDailyRematchFlags, 21 ; wilton
|
|
|
|
engine_flag wDailyRematchFlags, 22 ; parry
|
|
|
|
engine_flag wDailyRematchFlags, 23 ; erin
|
2017-12-11 10:47:58 -08:00
|
|
|
|
|
|
|
engine_flag wDailyPhoneItemFlags, 0 ; beverly has nugget
|
|
|
|
engine_flag wDailyPhoneItemFlags, 1 ; jose has star piece
|
|
|
|
engine_flag wDailyPhoneItemFlags, 2 ; wade has item (see EVENT_WADE_HAS_*** in constants/event_flags.asm)
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyPhoneItemFlags, 3 ; gina has leaf stone
|
2017-12-11 10:47:58 -08:00
|
|
|
engine_flag wDailyPhoneItemFlags, 4 ; alan has fire stone
|
|
|
|
engine_flag wDailyPhoneItemFlags, 5 ; liz has thunderstone
|
|
|
|
engine_flag wDailyPhoneItemFlags, 6 ; derek has nugget
|
|
|
|
engine_flag wDailyPhoneItemFlags, 7 ; tully has water stone
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wDailyPhoneItemFlags, 8 ; tiffany has pink bow
|
|
|
|
engine_flag wDailyPhoneItemFlags, 9 ; wilton has item (see EVENT_WILTON_HAS_*** in constants/event_flags.asm)
|
|
|
|
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 0 ; jack
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 1 ; huey
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 2 ; gaven
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 3 ; beth
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 4 ; jose
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 5 ; reena
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 6 ; joey
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 7 ; wade
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 8 ; ralph
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 9 ; liz
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 10 ; anthony
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 11 ; todd
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 12 ; gina
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 13 ; arnie
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 14 ; alan
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 15 ; dana
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 16 ; chad
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 17 ; tully
|
2018-01-22 10:00:35 -08:00
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 18 ; brent
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 19 ; tiffany
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 20 ; vance
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 21 ; wilton
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 22 ; parry
|
|
|
|
engine_flag wDailyPhoneTimeOfDayFlags, 23 ; erin
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2018-01-22 11:34:55 -08:00
|
|
|
engine_flag wPlayerSpriteSetupFlags, PLAYERSPRITESETUP_FEMALE_TO_MALE_F
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2020-06-13 15:48:26 -07:00
|
|
|
engine_flag wSwarmFlags, SWARMFLAGS_DUNSPARCE_SWARM_F
|
2018-01-22 12:40:43 -08:00
|
|
|
engine_flag wSwarmFlags, SWARMFLAGS_YANMA_SWARM_F
|
2021-03-03 19:22:41 -08:00
|
|
|
|
|
|
|
assert_table_length NUM_ENGINE_FLAGS
|