Pages

Armor and target category schema

content/armor_categories.toml, one optional file per content pack: the categories a weapon's [damage_profile.overrides] may name (WEAPON_SCHEMA.md). They play the part of TA's armor classes. What the loader does with it, and what it does not: ../README.md.

The file is an array of tables named categories:

Field Type Rule
id string Required, Identifier Rules, unique in the file.
name string Required, non-empty.
description string

A file without [[categories]], or with categories that is not an array of tables, is an error, and so is a repeated id.

Override keys are bare category ids (armored, not unit-pack.armored), the one exception to fully qualified references (IDENTIFIER_RULES.md). With this file present, an override key that is not one of its ids is an error. Without it, override keys are free labels.

Example

uh-sample-pack/content/armor_categories.toml:

[[categories]]
id          = "light"
name        = "Light"
description = "Lightly armored units and infantry."

[[categories]]
id          = "armored"
name        = "Armored"
description = "Heavily armored ground units."

[[categories]]
id          = "aircraft"
name        = "Aircraft"
description = "Air units."