summaryrefslogtreecommitdiff
path: root/include/pokemon.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pokemon.h')
-rw-r--r--include/pokemon.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/pokemon.h b/include/pokemon.h
index 497e8070b..0ff635a3f 100644
--- a/include/pokemon.h
+++ b/include/pokemon.h
@@ -11,6 +11,7 @@ struct PokemonSubstruct0
u32 experience;
u8 ppBonuses;
u8 friendship;
+ u16 filler;
};
struct PokemonSubstruct1
@@ -237,6 +238,15 @@ struct Evolution
u16 targetSpecies;
};
+#define NUM_UNOWN_FORMS 28
+
+#define GET_UNOWN_LETTER(personality) (( \
+ (((personality) & 0x03000000) >> 18) \
+ | (((personality) & 0x00030000) >> 12) \
+ | (((personality) & 0x00000300) >> 6) \
+ | (((personality) & 0x00000003) >> 0) \
+) % NUM_UNOWN_FORMS)
+
extern u8 gPlayerPartyCount;
extern struct Pokemon gPlayerParty[PARTY_SIZE];
extern u8 gEnemyPartyCount;