Skip to content

Configuration for Terrains

Claudio Bonesana edited this page Apr 14, 2021 · 1 revision

This configuration file defines the properties of the types of terrains available for the various maps.

Example: basic.terrains.yaml

terrain:

This specifies that in this configuration files are contained definitions for the types of terrain. This must be included in all files of this folder.

  OPEN_GROUND:

This is the internal name of this type of terrain. It is common to have it in capital letter with underscores instead of spaces.

    name: 'Open Ground'

This is the human-readable name of the type of terrain.

    protection: 0

Protection value TER given to the units that stand on this type of terrain.

    move_cost:
      infantry: 1.0
      vehicle: 1.0

Cost of moving through this kind of terrain. A value lower than 1.0 will give a movement bonus (easy to go through, like a road); otherwise a malus (hard to move, like a forest).

The movement cost is always specified for both kind of units: infantry and vehicle.

    block_los: false

If true, this obstacle will block the LOS that goes through it.

Clone this wiki locally