summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAsparagusEduardo <eduardo602002@gmail.com>2020-04-15 08:23:24 -0400
committerhuderlem <huderlem@gmail.com>2020-04-15 07:40:39 -0500
commit6eefcb1f82dc28cdc626e86fda3a217d21315181 (patch)
tree3a7650336ade1299d12f0805e1ededfc48a636a6 /src
parenta12de6e4800049ae0b25f01ddecdb7cb3d9a3a52 (diff)
Using sandstorm weather constant for Sand Veil encounter rate.
Diffstat (limited to 'src')
-rw-r--r--src/wild_encounter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wild_encounter.c b/src/wild_encounter.c
index 21f871751..7d20b2476 100644
--- a/src/wild_encounter.c
+++ b/src/wild_encounter.c
@@ -22,6 +22,7 @@
#include "constants/layouts.h"
#include "constants/maps.h"
#include "constants/species.h"
+#include "constants/weather.h"
extern const u8 EventScript_RepelWoreOff[];
@@ -492,7 +493,7 @@ static bool8 DoWildEncounterRateTest(u32 encounterRate, bool8 ignoreAbility)
encounterRate /= 2;
else if (ability == ABILITY_ARENA_TRAP)
encounterRate *= 2;
- else if (ability == ABILITY_SAND_VEIL && gSaveBlock1Ptr->weather == 8)
+ else if (ability == ABILITY_SAND_VEIL && gSaveBlock1Ptr->weather == WEATHER_SANDSTORM)
encounterRate /= 2;
}
if (encounterRate > 2880)