summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-08-04 20:33:05 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-08-04 20:38:57 -0400
commit5e8ffff62f6d4c7e4e2b62852eec14c086dc488e (patch)
tree5a90d154b053e51e1b8a02a5c871483edcb0f4bc /include
parenta4e47f12012ef249d8fe25f5e2f391f3dd0a871f (diff)
Add stat stage constants
Diffstat (limited to 'include')
-rw-r--r--include/constants/pokemon.h4
-rw-r--r--include/pokemon.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/constants/pokemon.h b/include/constants/pokemon.h
index 0d8fc6a57..286726838 100644
--- a/include/constants/pokemon.h
+++ b/include/constants/pokemon.h
@@ -84,6 +84,10 @@
#define NUM_NATURE_STATS NUM_STATS - 1 // excludes HP
#define NUM_BATTLE_STATS NUM_STATS + 2 // includes Accuracy and Evasion
+#define MIN_STAT_STAGE 0
+#define DEFAULT_STAT_STAGE 6
+#define MAX_STAT_STAGE 12
+
// Shiny odds
#define SHINY_ODDS 8 // Actual probability is SHINY_ODDS/65536
diff --git a/include/pokemon.h b/include/pokemon.h
index 69ef7a142..d75ec94f3 100644
--- a/include/pokemon.h
+++ b/include/pokemon.h
@@ -254,7 +254,7 @@ extern const u16 *const gLevelUpLearnsets[];
extern const u8 gPPUpGetMask[];
extern const u8 gPPUpSetMask[];
extern const u8 gPPUpAddMask[];
-extern const u8 gStatStageRatios[][2];
+extern const u8 gStatStageRatios[MAX_STAT_STAGE + 1][2];
extern const u16 gLinkPlayerFacilityClasses[];
extern const struct SpriteTemplate gUnknown_08329D98[];
extern const s8 gNatureStatTable[][5];