Skip to Content
The Alchemy Project

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

NameDescription
Sint16from [1344]The storm's dark colours (PALETTE_TINT_WARM), as the colour buffer's B, G and R channels: each flash fades back to them.
Sint16to [1344]The lit colours (PALETTE_TINT_PALE), as from.
Sint16delta [1344]The 12-tick steps from to back to from.
Sint16timerTicks to the next flash; below 0 stops the lightning.
Sint16enabledNonzero arms the next flash a random 51 to 549 ticks after each, with a thunderclap.
Sint16loudNonzero plays the louder thunderclap.
Uint8unusedAfterLoud [2]No code names it.

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() and fdWeatherUpdateLightning().

Definition at line 11 of file field_blend.h.

Fields in detail

from

Sint16 from[1344]

The storm's dark colours (PALETTE_TINT_WARM), as the colour buffer'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; 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.

unusedAfterLoud

Uint8 unusedAfterLoud[2]

No code names it.