summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-06-19 10:58:09 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-06-19 10:58:09 -0400
commit73d7f3cc5eb19168234ef82a18dc0d235e699401 (patch)
treeefdaac228562ad18520096460547d313c5e54824 /include
parent6f0dba80ac2ba1b5571d551ceca24c89a332fa14 (diff)
Define gender ratio as floats in personal.json
Diffstat (limited to 'include')
-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,