benilla-re systems structs docs

s_groupLiquidArmByType

global · terrain

Address
0x6b6408 · 9 bytes, up to 0x6b6410
Type
uint8_t[9]
Meaning
Holds the draw arm of each liquid type 0 to 8: 0 water, 1 magma, 2 none
Confidence
verified, proof one
Finding
terrain/groupdraw#group-liquid

Finding: Group liquid in terrain: map object draw

0x6b4060(group, flag) draws a group's liquid. The type is that of the first tile with liquid (0x6ba970); types 0, 4 and 8 draw water, 2, 3, 6 and 7 draw magma or slime, and the rest nothing. Water is drawn with blend 2 and no depth write, by the interior draw for a group without flags 0x48 and the exterior draw for the rest. The flag is the parity flag the flood stored; it is kept in 0xce269c.

The derivation is in the doc.