Skip to content

SortCameoAsBaseDefense

Added in 0.2.0

Sorts a BuildingType's cameo into the base-defense group of the structures strip.

Specification
Applies to
BuildingType
File
rules.ini
Section
[<ObjectType ID>]
Value
boolean
When omitted
InheritedFollows [`IsBaseDefense=`](/keys/isbasedefense/#scope-buildingtype).

With yes, the structure’s cameo sorts after ordinary structures, walls and gates that share its CameoSortOrder. The group decides only between cameos with equal CameoSortOrder values, so a base defense with a lower value still comes before an ordinary structure with a higher one. The order of the strips gives the full comparison.

A wall or a gate stays in its own group whatever this key says, because those groups are tested first.

A mod that sets IsBaseDefense=yes only so the computer rates a structure as a base defense can write SortCameoAsBaseDefense=no to keep its cameo among the ordinary structures.

With SidebarSorting=no, the strips are not sorted and this key has no effect.

See also — sidebar, SidebarSorting

History

  1. Added0.2.0In development

    Order the sidebar cameos by category and rules index