Using WEATHER_SANDSTORM in battle_setup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user