mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-26 13:31:03 +01:00
Merge pull request #1546 from AsparagusEduardo/pret_sandstorm
Using WEATHER_SANDSTORM in battle_setup
This commit is contained in:
commit
737a5cba55
@ -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