diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2019-10-30 11:16:26 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2019-10-30 11:16:26 -0400 |
commit | 265f8b5b259221dfa1a5fc5537059f262036eb52 (patch) | |
tree | fe1a99f580344285b030cf626bd9c1b2ab5d5384 /include/constants/flags.h | |
parent | 0f0fb927a97fb3f1261e210235b9ada76da05479 (diff) |
trade through sub_8053E1C; dynamic sys flags start idx
Diffstat (limited to 'include/constants/flags.h')
-rw-r--r-- | include/constants/flags.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/constants/flags.h b/include/constants/flags.h index 082e12f87..80eaca3e0 100644 --- a/include/constants/flags.h +++ b/include/constants/flags.h @@ -1,7 +1,7 @@ #ifndef GUARD_CONSTANTS_FLAGS_H #define GUARD_CONSTANTS_FLAGS_H -// TODO: Get correct names and numbers +#include "constants/trainers.h" #define FLAG_TEMP_1 0x001 #define FLAG_TEMP_2 0x002 @@ -1309,10 +1309,12 @@ #define FLAG_TRAINER_FLAG_START 0x500 -#define TRAINERS_FLAG_NO 0x2E7 // 743 -#define TRAINER_FLAGS_WORDS 0x300 - -#define SYS_FLAGS (FLAG_TRAINER_FLAG_START + TRAINER_FLAGS_WORDS) // 0x800 +// Vanilla: SYS_FLAGS = 0x800 +#if (NUM_TRAINERS) & 31 +#define SYS_FLAGS (FLAG_TRAINER_FLAG_START + ((NUM_TRAINERS) + 31) / 32 * 32) +#else +#define SYS_FLAGS (FLAG_TRAINER_FLAG_START + (NUM_TRAINERS)) +#endif // SYSTEM FLAGS |