mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 11:43:37 +01:00
Merge branch 'master' of https://github.com/DizzyEggg/pokeemerald into battle_engine_v2
This commit is contained in:
commit
4c473d057e
@ -23,6 +23,7 @@
|
||||
#include "constants/layouts.h"
|
||||
#include "constants/maps.h"
|
||||
#include "constants/species.h"
|
||||
#include "constants/weather.h"
|
||||
|
||||
extern const u8 EventScript_RepelWoreOff[];
|
||||
|
||||
@ -493,7 +494,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user