Skip to main content

Module legacy

Module legacy 

Source
Expand description

Army legacies (MILITARY_FORCE/MILITARY_FORCE_LEGACY): the name, kind, emblem and number of each force.

Garrisons get fixed names. Generals get their legacy_override text if the character has one, otherwise a name of their subculture never used before in the faction. Generals also get an emblem. The game draws the names and emblems from its RNG; these functions take the first unused ones in table order. Verified on Attila’s main campaign: kinds, override names and numbers match for 343 of 343 forces, and every drawn name and emblem comes from the expected pool without repeats.

Structs§

Legacy
The legacy of a force.
LegacyForce
A force of a faction, as needed to name it.

Enums§

ForceKind
The kind of a force, as the legacy stores it (MILITARY_FORCE_LEGACY #4).

Functions§

emblem_pool
Returns the emblems available to a faction’s armies or navies.
legacies
Returns the legacies of a faction’s forces.
legacy_skill_set
Returns the skill set of a faction’s armies or navies (MILITARY_FORCE_LEGACY/CAMPAIGN_SKILLS #1).
name_pool
Returns the name localisation keys available to a faction’s armies or navies.