diff options
-rw-r--r-- | Fix-Snow-Weather.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Fix-Snow-Weather.md b/Fix-Snow-Weather.md index de6cec9..e40c067 100644 --- a/Fix-Snow-Weather.md +++ b/Fix-Snow-Weather.md @@ -44,3 +44,27 @@ The snow is spawned based on gSpriteCoordOffsetX/Y, which is not updated until a 1. First, add `#include "field_camera.h"` to the top of the file somewhere. 2. Next, add `UpdateCameraPanning();` before `sWeatherFuncs[gWeatherPtr->currWeather].initAll();` in `Task_WeatherInit` + +### Hail on Overworld +To allow hail on when snow is present, go to **src/battle_util.c** +Search for `switch (GetCurrentWeather())` (Around line 2908) and input these code below the `WEATHER_DROUGHT` code. +```c + case WEATHER_SNOW: + if (!(gBattleWeather & WEATHER_HAIL_ANY)) + { + gBattleWeather = WEATHER_HAIL_ANY; + gBattleScripting.animArg1 = B_ANIM_HAIL_CONTINUES; + gBattleScripting.battler = battler; + effect++; + } + break; +``` + +Then head over to `src/battle_message.c`, search for `const u16 gWeatherContinuesStringIds` and replace the code with : +```c + STRINGID_ITISRAINING, STRINGID_ITISRAINING, STRINGID_ITISRAINING, + STRINGID_ITISRAINING, STRINGID_STARTEDHAIL, STRINGID_ITISRAINING, + STRINGID_ITISRAINING, STRINGID_ITISRAINING, STRINGID_SANDSTORMISRAGING, + STRINGID_ITISRAINING, STRINGID_ITISRAINING, STRINGID_ITISRAINING, + STRINGID_SUNLIGHTSTRONG, STRINGID_ITISRAINING, STRINGID_ITISRAINING, STRINGID_ITISRAINING +```
\ No newline at end of file |