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
| Function | Description |
|---|---|
armor | Returns a template’s armor and internal values. |
base_cost | Calculates a template’s FASA base cost. |
battle_value | Calculates a template’s battle value. |
critical_slots | Lists a template section’s critical slots. |
engine | Returns a template’s engine configuration. |
exists | Tests whether a unit template exists. |
installed_parts | Lists parts represented by non-destroyed critical slots. |
payload | Lists a template’s weapons and ammunition. |
show_critical_status | Sends a template’s critical-status report to a player. |
show_status | Sends a template’s status report to a player. |
show_weapon_specs | Sends a template’s weapon-specification report to a player. |
technologies | Lists a template’s configured and inferred technologies. |
weapons | Lists the weapons mounted on a unit template. |