btech.template

btech.template provides immutable unit-template queries and displays.

Template references must be non-empty and cannot contain .., /, or \; invalid references raise mux.arg.invalid. Except for exists, template queries raise btech.template.not_found when the reference is missing and btech.template.invalid when the referenced template is malformed. Section arguments and returned section fields use typed constants from btech.unit.sections.

Functions

FunctionDescription
armorReturns a template’s armor and internal values.
base_costCalculates a template’s FASA base cost.
battle_valueCalculates a template’s battle value.
critical_slotsLists a template section’s critical slots.
engineReturns a template’s engine configuration.
existsTests whether a unit template exists.
installed_partsLists parts represented by non-destroyed critical slots.
payloadLists a template’s weapons and ammunition.
show_critical_statusSends a template’s critical-status report to a player.
show_statusSends a template’s status report to a player.
show_weapon_specsSends a template’s weapon-specification report to a player.
technologiesLists a template’s configured and inferred technologies.
weaponsLists the weapons mounted on a unit template.