Skip to content

Quarry target category

INI referenceEnumsQuarryType

Broad target categories a team attack mission scans for, and that a house records as its preferred target.

Engine enum
QuarryType
Input form
Integer

A quarry is the kind of target a team attacks. The team’s Attack… mission names a category, and the team leader searches the whole map for the best enemy of that kind. Target selection explains how the candidates are ranked.

Category 2 accepts every structure, including the factories, armed structures and power plants that categories 6, 7 and 9 pick out. Each of those three limits the search to its own kind of structure.

A value outside the list works like category 0. The team gets no target and moves on to the next line of its script.

Preferred target… also takes a quarry category, but it stores the category on a house instead of giving it to a team. That page describes what the stored category does.

Values

10 of 10

InputMeaningEngine constantStored value
0No category, and no target is assigned.QUARRY_NONE0
1Any suitable enemy.QUARRY_ANYTHING1
2Structures of any kind.QUARRY_BUILDINGS2
3Vehicles and structures whose type sets a nonzero Storage, such as harvesters and refineries.QUARRY_HARVESTERS3
4Infantry.QUARRY_INFANTRY4
5Vehicles of any kind, harvesters included. Landed aircraft also count, as do structures that can undeploy into a vehicle, except a construction yard.QUARRY_VEHICLES5
6Structures whose type sets Factory.QUARRY_FACTORIES6
7Armed structures.QUARRY_DEFENSE7
8The same search as 1. Despite the name, targets near the house's base get no preference.QUARRY_THREAT8
9Structures that generate power. A structure with a larger power output is preferred.QUARRY_POWER9

Used by

Source files

Linked at revision 51b52aa38392.