"map_extra_science" was introduced in the previous PR for this. It is called from mapgen for the map special.

"map_extra_drugdeal" / "map_extra_military" is basically the same for other map specials.