From 901fceec188ff640f32b22343e5a0b6e7e4c9c42 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Tue, 17 Mar 2020 20:59:39 -0400 Subject: through GetInteractedObjectEventScript --- include/constants/flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/constants') diff --git a/include/constants/flags.h b/include/constants/flags.h index 0bc96eb35..ccac1da3b 100644 --- a/include/constants/flags.h +++ b/include/constants/flags.h @@ -1360,7 +1360,7 @@ #define FLAG_SYS_RIBBON_GET (SYS_FLAGS + 0x3B) #define FLAG_SYS_SAW_HELP_SYSTEM_INTRO (SYS_FLAGS + 0x3C) #define FLAG_0x83D (SYS_FLAGS + 0x3D) -#define FLAG_PALLET_TOWN_LADY_MOVED_FROM_SIGN (SYS_FLAGS + 0x3E) +#define FLAG_OPENED_START_MENU (SYS_FLAGS + 0x3E) #define FLAG_0x83F (SYS_FLAGS + 0x3F) #define FLAG_SYS_NATIONAL_DEX (SYS_FLAGS + 0x40) #define FLAG_SYS_PC_STORAGE_DISABLED (SYS_FLAGS + 0x41) -- cgit v1.2.3 From ba7e4acfeee5bdda18113586fde37b19429c3715 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Tue, 17 Mar 2020 22:08:02 -0400 Subject: through CheckStandardWildEncounter --- include/constants/event_bg.h | 2 ++ include/constants/vars.h | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'include/constants') diff --git a/include/constants/event_bg.h b/include/constants/event_bg.h index b106a74ef..37fedf25b 100644 --- a/include/constants/event_bg.h +++ b/include/constants/event_bg.h @@ -7,4 +7,6 @@ #define BG_EVENT_PLAYER_FACING_EAST 3 #define BG_EVENT_PLAYER_FACING_WEST 4 +#define BG_EVENT_HIDDEN_ITEM 7 + #endif // GUARD_CONSTANTS_EVENT_BG_H diff --git a/include/constants/vars.h b/include/constants/vars.h index 640bf41fd..6e0553931 100644 --- a/include/constants/vars.h +++ b/include/constants/vars.h @@ -49,10 +49,10 @@ // Counts up every step. Wraps around at 128. // When wraparound occurs, the friendship of // every party poke gets a slight boost. -#define VAR_FRIENDSHIP_STEP_COUNT 0x4021 +#define VAR_HAPPINESS_STEP_COUNTER 0x4021 // Maybe unused? -#define VAR_0x4022 0x4022 +#define VAR_POISON_STEP_COUNTER 0x4022 // Step counter. Caps at 1500. If you enter a map with // renewable hidden items and this counter is capped, @@ -81,8 +81,8 @@ #define VAR_QUEST_LOG_MON_COUNTS 0x4027 #define VAR_MENEWS_JISAN_STEP_COUNTER 0x4028 #define VAR_0x4029 0x4029 -#define VAR_HAPPINESS_STEP_COUNTER 0x402A -#define VAR_POISON_STEP_COUNTER 0x402B +#define VAR_0x402A 0x402A +#define VAR_0x402B 0x402B #define VAR_RESET_RTC_ENABLE 0x402C #define VAR_0x402D 0x402D #define VAR_0x402E 0x402E -- cgit v1.2.3 From e078e4b315532c5a309425df6bf450abbf7bba04 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Thu, 19 Mar 2020 08:45:32 -0400 Subject: Some documentation of field_control_avatar and related routines --- include/constants/quest_log.h | 12 ++++++++++++ include/constants/vars.h | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'include/constants') diff --git a/include/constants/quest_log.h b/include/constants/quest_log.h index c1eaf3f07..b5494e7b9 100644 --- a/include/constants/quest_log.h +++ b/include/constants/quest_log.h @@ -118,6 +118,18 @@ #define QL_DEPARTED_MISC_BUILDING_1 8 #define QL_DEPARTED_MISC_BUILDING_2 9 +#define QL_INPUT_OFF 0 +#define QL_INPUT_UP 1 +#define QL_INPUT_DOWN 2 +#define QL_INPUT_LEFT 3 +#define QL_INPUT_RIGHT 4 +#define QL_INPUT_L 5 +#define QL_INPUT_R 6 +#define QL_INPUT_START 7 +#define QL_INPUT_SELECT 8 +#define QL_INPUT_A 9 +#define QL_INPUT_B 10 + #define FANCLUB_MEMBER1 0 #define FANCLUB_MEMBER2 1 diff --git a/include/constants/vars.h b/include/constants/vars.h index 6e0553931..4a64eb095 100644 --- a/include/constants/vars.h +++ b/include/constants/vars.h @@ -51,7 +51,12 @@ // every party poke gets a slight boost. #define VAR_HAPPINESS_STEP_COUNTER 0x4021 -// Maybe unused? +// Counts up every step while a party Pokemon is +// poisoned. Wraps around at 5. When wraparound +// occurs, every party Pokemon with the PSN status +// takes 1 point of damage. +// This is a deviation from the typical rate in +// the series, which is 1 damage every 4 steps. #define VAR_POISON_STEP_COUNTER 0x4022 // Step counter. Caps at 1500. If you enter a map with -- cgit v1.2.3