[
  {
    "type": "overmap_connection",
    "id": "local_road",
    "subtypes": [
      { "terrain": "road", "locations": [ "road" ], "basic_cost": 0, "flags": [ "ORTHOGONAL" ] },
      { "terrain": "road", "locations": [ "stream" ], "basic_cost": 30, "flags": [ "ORTHOGONAL" ] },
      { "terrain": "road", "locations": [ "field" ], "basic_cost": 5 },
      { "terrain": "road", "locations": [ "forest" ], "basic_cost": 20 },
      { "terrain": "road", "locations": [ "swamp" ], "basic_cost": 40 },
      { "terrain": "road", "locations": [ "highway" ], "basic_cost": 120, "flags": [ "PERPENDICULAR_CROSSING" ] },
      { "terrain": "road_nesw_manhole", "locations": [  ] },
      { "terrain": "bridge", "locations": [ "water" ], "basic_cost": 120, "flags": [ "ORTHOGONAL" ] },
      { "terrain": "bridgehead_ground", "locations": [ "water" ], "basic_cost": 120, "flags": [ "ORTHOGONAL" ] }
    ]
  },
  {
    "type": "overmap_connection",
    "id": "highway_road_connection",
    "//": "Roads from highways shouldn't cross themselves",
    "subtypes": [
      { "terrain": "road", "locations": [ "road" ], "basic_cost": 0, "flags": [ "ORTHOGONAL" ] },
      { "terrain": "road", "locations": [ "field" ], "basic_cost": 5 },
      { "terrain": "road", "locations": [ "forest" ], "basic_cost": 20 },
      { "terrain": "road", "locations": [ "swamp" ], "basic_cost": 40 },
      { "terrain": "road_nesw_manhole", "locations": [  ] },
      { "terrain": "bridge", "locations": [ "water" ], "basic_cost": 120, "flags": [ "ORTHOGONAL" ] },
      { "terrain": "bridgehead_ground", "locations": [ "water" ], "basic_cost": 120, "flags": [ "ORTHOGONAL" ] }
    ]
  },
  {
    "type": "overmap_connection",
    "id": "sewer_tunnel",
    "subtypes": [ { "terrain": "sewer", "locations": [ "subterranean" ], "flags": [ "ORTHOGONAL" ] } ]
  },
  {
    "type": "overmap_connection",
    "id": "subway_tunnel",
    "subtypes": [
      { "terrain": "subway", "locations": [ "subterranean_subway" ], "flags": [ "ORTHOGONAL" ] },
      { "terrain": "lab_subway", "locations": [ "lab_subway" ], "flags": [ "ORTHOGONAL" ] }
    ]
  },
  {
    "type": "overmap_connection",
    "id": "forest_trail",
    "subtypes": [
      { "terrain": "forest_trail", "locations": [ "forest_trail" ], "basic_cost": 0, "flags": [ "ORTHOGONAL" ] },
      { "terrain": "forest_trail", "locations": [ "forest_center" ], "basic_cost": 5 },
      { "terrain": "forest_trail", "locations": [ "forest_edge" ], "basic_cost": 100 },
      { "terrain": "forest_trail", "locations": [ "swamp" ], "basic_cost": 40 }
    ]
  }
]
