struct FIELD_BLEND_STATE
The storm's lightning state: the colours it flashes between and their difference, the countdown to the next flash and whether the thunder is loud.
Declared in field_blend.h.
Fields
| Name | Description | |
|---|---|---|
Sint16 | from [1344] | The storm's dark colours (PALETTE_TINT_DIM), as the palette fade's B, G and R channels: each flash fades back to them. |
Sint16 | to [1344] | The lit colours (PALETTE_TINT_PALE), as from. |
Sint16 | delta [1344] | The 12-tick steps from to back to from. |
Sint16 | timer | Ticks to the next flash, which comes in three, 5 ticks apart; below 0 stops the lightning. |
Sint16 | enabled | Nonzero arms the next flash a random 51 to 549 ticks after each, with a thunderclap. |
Sint16 | loud | Nonzero plays the louder thunderclap, SE_THUNDER_LOUD for SE_THUNDER. |
Uint8 | padding [2] | Up to the struct's word-aligned size. |
Description
The storm's lightning state: the colours it flashes between and their difference, the countdown to the next flash and whether the thunder is loud.
struct FIELD_BLEND_STATE
Referenced by fdWeatherLastLightning(), fdWeatherResumeLightning(), fdWeatherStartLightning(), fdWeatherStartLightningFlash(), fdWeatherStopLightning(), fdWeatherUpdateLightning(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza() and scInit().
Definition at line 11 of file field_blend.h.
Fields in detail
from
Sint16 from[1344]
The storm's dark colours (PALETTE_TINT_DIM), as the
palette fade's B, G and R channels: each flash fades
back to them.
to
Sint16 to[1344]
The lit colours (PALETTE_TINT_PALE), as from.
delta
Sint16 delta[1344]
The 12-tick steps from to back to from.
timer
Sint16 timer
Ticks to the next flash, which comes in three, 5 ticks apart; below 0 stops the lightning.
enabled
Sint16 enabled
Nonzero arms the next flash a random 51 to 549 ticks after each, with a thunderclap.
loud
Sint16 loud
Nonzero plays the louder thunderclap, SE_THUNDER_LOUD
for SE_THUNDER.
padding
Uint8 padding[2]
Up to the struct's word-aligned size.