Unit Class Flags

Unit types (e.g. a unit such as a Phalanx) are associated or grouped together in classes. Every unit type is associated with a single unit class. Each class can have zero or more flags assigned to it by ruleset modders. The flags give additional features to all of the unit types associated with the class. A reader can find the unit type flags by looking at the units.ruleset file in any ruleset directory. The following flags are used in all of the rulesets shipped by the Freeciv21 developers.

Airliftable

Allows a unit to be airlifted from a suitable city. This quite often requires an Airport.

AttackNonNative

Allows a native tiled unit to attack a non-native tiled unit (e.g. Cannon attacks a Galleon from inside a city). The Unit Type Flag Only_Native_Attack can override this.

AttFromNonNative

Allows a unit to attack another unit from non-native tiles (e.g. Marines in a Transport attacking a city). The Unit Type Flag Only_Native_Attack can override this.

BuildAnywhere

Allows a unit to be built even in the middle of non-native terrain.

CanFortify

Allows a Unit to fortify inside and outside of cities, gaining a defense bonus.

CanOccupyCity

Allows a unit to enter a city and take ownership of it.

CanPillage

Allows a unit to pillage a tile’s infrastructure improvements. This can be your own tile or that of another nation.

CollectRansom

Allows a unit to collect a ransom in gold after killing a Barbarian Leader.

DamageSlows

Unit classes with this flag are slowed down (have less than 100% of expected movement points) when damaged.

DoesntOccupyTile

These kinds of units do not fully occupy the tile they are on. If the unit is of an enemy nation, your city’s citizens can still work that tile. Unit classes without this flag fully occupy the tile and prevent citizen workers from utilizing the tile’s capabilities.

KillCitizen

A unit class with this flag will kill city citizens during attack. If too many citizens are killed as part of taking a city, the player may end up with ruins instead of a city.

Missile

As the flag name implies, these are missiles.

TerrainDefense

Unit classes with this flag give unit types a defense bonus from certain terrain.

TerrainSpeed

Units use terrain specific speed.

Unreachable

Unit can be attacked only by units explicitly listing this class in its targets, unless on a city or native base. For class members which are transports, cargo cannot load/unload except in a city or native base, unless that unit explicitly lists this class in its embarks/disembarks actions.

ZOC

Unit is subject to zone of control rules.