fn calculate_hero_tree_offsets( nodes: &[TraitNodeRow], sub_tree_ids: &[i32], ) -> IntMap<i32, (i32, i32)>