Skip to content

ClearToRoughLat

Tile set holding the sixteen blend pieces laid where rough ground meets other terrain.

Specification
Applies to
tile controls
File
theater control file
Section
[General]
Value
integer
When omitted
-1No tile set is selected, so the role stays unresolved.

A LAT set is the strip of blend art that keeps one ground type from meeting another along a hard square edge. The theater control file names it by tile-set number, and that number resolves to the index of the set’s first tile.

Blending is a per-cell decision taken whenever a cell’s attributes are recalculated. A cell takes part when it carries either its family’s plain ground tile or one of the sixteen tiles of the family’s LAT set. Its four orthogonal neighbors are then examined in the order north, east, south, west, and every neighbor belonging to neither of those two groups contributes a bit: 1 for north, 2 for east, 4 for south, 8 for west. The total selects the tile at that offset into the LAT set, so a rough cell whose east and south neighbors are something other than rough takes the piece at offset 6. A cell whose four neighbors all match reverts to the plain ground tile. That case is handled by the plain tile rather than by offset 0, so the first tile of a LAT set is never chosen here and the blend art occupies offsets 1 through 15.

The families are evaluated one after another in a single pass — rough, sand, green, pavement, crystal, swamp, blue mold — and each one re-reads the tile the previous family left behind.

For this family the two groups are the single plain RoughTile ground tile and the sixteen tiles here. Nothing else counts as rough, so rough ground blends against pavement, water, and cliffs alike.

See alsoRoughTile