src/field/script_commands_weather.c
The weather on the field: the rain splashing round the leader and the lightning of the storm over Vale. More…
Included by script_commands.c.
Functions
| Name | Description | |
|---|---|---|
void | fdWeatherUpdateRain (void) | Event of the rain: each drop splashes on the ground and starts again at a new spot within 128 pixels of the leader. |
void | fdWeatherUpdateLightning (void) | Event for the storm: lightning flashes the BG colours three times, 5 ticks apart. |
Description
The weather on the field: the rain splashing round the leader and the
lightning of the storm over Vale. Part of script_commands.c.
Functions in detail
fdWeatherUpdateRain
void fdWeatherUpdateRain(void)
Event of the rain: each drop splashes on the ground and starts again at a new spot within 128 pixels of the leader.
References fdMapGridGetTerrainHeightStub(), fdMapGridScrollStateView(), gmFlagGetStub(), Sint32, state, syOAMAddSpriteAtDepth(), syRandom() and WeatherRainSplashFrames.
Referenced by fdWeatherStartRain().
Definition at line 8 of file script_commands_weather.c.
fdWeatherUpdateLightning
void fdWeatherUpdateLightning(void)
Event for the storm: lightning flashes the BG colours three times, 5 ticks apart.
References fdPaletteFadeSetTarget(), gmFlagGetStub(), Sint32, state, syDMAXCopy() and sySoundPlayStub().
Referenced by fdWeatherStartLightning() and fdWeatherStartLightningFlash().
Definition at line 61 of file script_commands_weather.c.