diff options
author | Blackforest92 <64682409+Blackforest92@users.noreply.github.com> | 2020-07-16 17:24:45 +0700 |
---|---|---|
committer | Blackforest92 <64682409+Blackforest92@users.noreply.github.com> | 2020-07-16 17:24:45 +0700 |
commit | b3e8a5d1632832aa88be536dd6fa22bee23fbae2 (patch) | |
tree | e7d0fdbcbdb57b0a78e2ed0a48f7236267854456 | |
parent | 8f322d4b00fdbf33b8ccd4601a9f3839dbf7afe7 (diff) |
Updated Fix Snow Weather (markdown)
-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 |