Skip to content

TerrainPalette

Draws the structure with the cell's terrain colors instead of its owner's.

Specification
Applies to
BuildingType
File
art.ini
Section
[<Image ID>]Image ID: Image= value; ObjectType ID when omitted
Value
boolean
When omitted
no

An object is normally drawn through the color table belonging to its owning house, which is what gives a Remapable=yes structure its owner’s color. With this flag set, a structure is drawn through the color table the cell it stands on carries for its terrain, and the brightness used is the cell’s tile lighting rather than the level worked out for the object, so ExtraLight does not reach it while it is drawn normally.

art.ini
[MYTREEHOUSE] ; example civilian structure, drawn from its own Image ID
TerrainPalette=yes

A cell that has no table yet is given one as the structure is drawn. If one still cannot be built, the structure is not drawn at all that pass. The copy drawn under fog takes the cell’s table as well, so a flagged structure keeps its terrain colors while fogged; the palette is the only part of the draw the flag decides there.

See alsoExtraLight, Remapable