Use a constant instead of integer literals when checking for shinyness

This commit is contained in:
Gudf committed 2019-07-11 20:16:39 +02:00
1 parent ae01afdd30
commit 75f165ed74
3 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -2029,7 +2029,7 @@ void sub_8172EF0(u8 battler, struct Pokemon *mon)
if (IsBattlerSpriteVisible(battler))
{
shinyValue = HIHALF(otId) ^ LOHALF(otId) ^ HIHALF(personality) ^ LOHALF(personality);
if (shinyValue < 8)
if (shinyValue < SHINY_ODDS)
isShiny = TRUE;
if (isShiny)