summaryrefslogtreecommitdiff
path: root/include/constants/pokemon.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/constants/pokemon.h')
-rw-r--r--include/constants/pokemon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/constants/pokemon.h b/include/constants/pokemon.h
index 4a2647d6..1af59830 100644
--- a/include/constants/pokemon.h
+++ b/include/constants/pokemon.h
@@ -269,9 +269,15 @@
#define MON_DATA_SPECIES_NAME 178
#define MON_RATIO_MALE 0
+#define MON_RATIO_EIGHTH 31
+#define MON_RATIO_QUARTER 63
+#define MON_RATIO_HALF 127
+#define MON_RATIO_THREEQUARTER 191
#define MON_RATIO_FEMALE 254
#define MON_RATIO_UNKNOWN 255
+#define GENDER_RATIO(frac) ( (frac) <= 1 ? (u8)((frac) * 254.75) : 255 )
+
enum MonGender
{
MON_MALE = 0,