Skip to content

Configuration for Figures

Claudio Bonesana edited this page Apr 14, 2021 · 2 revisions

This configuration file defines the properties of the figures.

Examples: figure.template.yaml, Sniper.yaml, Tank.yaml,

figure:

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

  Tank: 

This is the internal name associated with this figure. This name can be used as a reference from other configuration file.

If the name of the figure is template, then this figure will be the generic template for all the other figures.

    type: vehicle

Available types of figures are: infantry, vehicle, and other.

    move: 0

Maximum move capacity for each turn.

    load: 0

Load parameter for the figure.

    hp: 0

Initial HP (health points) for the figure.

    defense:
      basic: 1
      smoke: 18
      antitank: 0

This defines the defense available for this figure and the amount of value DEF used in the hit calculator.

The antitank armor is completely optimal. If set, the figure will be vulnerable only to weapons marked as antitank: true.

    weapons:
      MachineGun: inf
      Cannon: 8
      SmokeGrenade: 2

This is the definition of the weapons available to the figure.

The names indicate the internal names defined in the each weapon configuration files.

The values indicates the amount of ammunition available. For an infinite amount it is possible to use the 'inf' value.

    bonus: 0

This is a general bonus (or malus, can also be negative) to the hit calculator.

    can_transport: false

If true, this figure can transport other units. Typically all vehicle have this flag set to true.

    transport_capacity: 0

Maximum amount of that can be transported at the same time.

    update:
      - attribute: endurance
        type: fixed
        value: 4

This part is to alter the behavior after each update (moment between two turns). In this case we defined that the attribute endurance of this figure is fixed to a value of 4. The effect is that this figure will have in its hit calculator always the value END = 4.

The possible types are:

  • fixed: keep the attribute of a figure to a given value.
  • add: increase the attribute by a given value.
  • remove: decrease the attribute of a figure by a given value.
  • clamp: keep the attribute of a figure between a min and a max value (use keywords min and max instead of value).

The attribute is one of the internal representation of the values used in the hit calculator:

  • int_atk: INT for red
  • int_def: INT for blue
  • endurance: END
  • bonus: BONUS
Clone this wiki locally