Skip to content

IsBaseDefense

Gives a BuildingType the computed ratings the computer picks base defenses by, or counts a TeamType against its house's defensive team total.

Base defense building

Specification — Base defense building
Applies to
BuildingType
File
rules.ini
Section
[<ObjectType ID>]
Value
boolean
When omitted
no

Only a type carrying this flag has its anti-air, anti-armor and anti-infantry values computed from its primary weapon, and a type whose three values stay at zero never enters a defense candidate list. Outside a campaign game, the node of such a building is retired to a fresh placeholder when the building is taken off the map, so the planner picks a new type and cell rather than rebuilding what was lost.

Defensive team

Specification — Defensive team
Applies to
TeamType
File
ai.ini or map file
Section
[<ObjectType ID>]
Value
boolean
When omitted
no

Every live team built from such a TeamType raises its house’s defensive team count, which is weighed against MinimumAIDefensiveTeams while UseMinDefenseRule is on before an AI trigger may spring. The team creation pass counts a house’s live defensive teams again for itself and caps them against MaximumAIDefensiveTeams. An AI trigger whose first TeamType is defensive, and whose second is defensive or absent, is itself handled as a defensive trigger.

See alsoai-base-building