Using sandstorm weather constant for Sand Veil encounter rate.

This commit is contained in:
AsparagusEduardo 2020-04-15 08:23:24 -04:00 committed by huderlem
parent a12de6e480
commit 6eefcb1f82
1 changed files with 2 additions and 1 deletions

View File

@ -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)