Precompute everything the metrics need — enriched buildings, defense units
with combat metadata, the core building, storages and the compartment
analysis — so each metric is a cheap pure read rather than another village
scan. Core and storage roles come from the game rules, not category literals.
Precompute everything the metrics need — enriched buildings, defense units with combat metadata, the core building, storages and the compartment analysis — so each metric is a cheap pure read rather than another village scan. Core and storage roles come from the game rules, not category literals.