mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-28 00:24:11 +01:00
Using WEATHER_SANDSTORM in battle_setup
This commit is contained in:
parent
f9e8c88eb5
commit
b282bbc270
@ -46,6 +46,7 @@
|
||||
#include "constants/maps.h"
|
||||
#include "constants/trainers.h"
|
||||
#include "constants/trainer_hill.h"
|
||||
#include "constants/weather.h"
|
||||
|
||||
enum {
|
||||
TRANSITION_TYPE_NORMAL,
|
||||
@ -686,7 +687,7 @@ u8 BattleSetup_GetTerrainId(void)
|
||||
}
|
||||
if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(ROUTE113) && gSaveBlock1Ptr->location.mapNum == MAP_NUM(ROUTE113))
|
||||
return BATTLE_TERRAIN_SAND;
|
||||
if (GetSav1Weather() == 8)
|
||||
if (GetSav1Weather() == WEATHER_SANDSTORM)
|
||||
return BATTLE_TERRAIN_SAND;
|
||||
|
||||
return BATTLE_TERRAIN_PLAIN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user