mirror of https://github.com/pret/pokeemerald.git
update weather flag names
parent
d4573991db
commit
9506a9526b
|
@ -89,7 +89,7 @@ We also need to make a similar change to the boosts that weather provides. In Ge
|
||||||
```c
|
```c
|
||||||
if (WEATHER_HAS_EFFECT2)
|
if (WEATHER_HAS_EFFECT2)
|
||||||
{
|
{
|
||||||
if (gBattleWeather & WEATHER_RAIN_TEMPORARY)
|
if (gBattleWeather & B_WEATHER_RAIN_TEMPORARY)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
@ -103,11 +103,11 @@ if (WEATHER_HAS_EFFECT2)
|
||||||
}
|
}
|
||||||
|
|
||||||
// any weather except sun weakens solar beam
|
// any weather except sun weakens solar beam
|
||||||
if ((gBattleWeather & (WEATHER_RAIN_ANY | WEATHER_SANDSTORM_ANY | WEATHER_HAIL_ANY)) && gCurrentMove == MOVE_SOLAR_BEAM)
|
if ((gBattleWeather & (B_WEATHER_RAIN_ANY | B_WEATHER_SANDSTORM_ANY | B_WEATHER_HAIL_ANY)) && gCurrentMove == MOVE_SOLAR_BEAM)
|
||||||
damage /= 2;
|
damage /= 2;
|
||||||
|
|
||||||
// sunny
|
// sunny
|
||||||
if (gBattleWeather & WEATHER_SUN_ANY)
|
if (gBattleWeather & B_WEATHER_SUN_ANY)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue