From 8b5dde9e125ff1b53c1ad36176742e0aa8ad79ed Mon Sep 17 00:00:00 2001 From: eltank <8000047+eltank@users.noreply.github.com> Date: Mon, 7 Jun 2021 22:09:41 -0700 Subject: [PATCH] Add hidden lab basement special --- data/json/overmap/overmap_connections.json | 5 +++++ data/json/overmap/overmap_special/specials.json | 12 ++++++++++++ data/json/overmap/special_locations.json | 5 +++++ 3 files changed, 22 insertions(+) diff --git a/data/json/overmap/overmap_connections.json b/data/json/overmap/overmap_connections.json index 8fe0abcf64976..45d9eb13c6930 100644 --- a/data/json/overmap/overmap_connections.json +++ b/data/json/overmap/overmap_connections.json @@ -41,5 +41,10 @@ { "terrain": "railroad_level_crossing", "locations": [ "railroad_level_crossing_allowed" ], "basic_cost": 1 }, { "terrain": "railroad_bridge", "locations": [ "water" ], "basic_cost": 1, "flags": [ "ORTHOGONAL" ] } ] + }, + { + "type": "overmap_connection", + "id": "hidden_lab_basement", + "subtypes": [ { "terrain": "basement", "locations": [ "potential_basement_lab_entrance" ], "basic_cost": 0 } ] } ] diff --git a/data/json/overmap/overmap_special/specials.json b/data/json/overmap/overmap_special/specials.json index a967b44cbfa00..105b8a96fb9a4 100644 --- a/data/json/overmap/overmap_special/specials.json +++ b/data/json/overmap/overmap_special/specials.json @@ -7323,5 +7323,17 @@ "city_sizes": [ 0, 12 ], "occurrences": [ 10, 100 ], "flags": [ "CLASSIC", "UNIQUE" ] + }, + { + "type": "overmap_special", + "id": "basement_hidden_lab_entrance", + "overmaps": [ { "point": [ 0, 0, -1 ], "overmap": "basement_hidden_lab_stairs" } ], + "connections": [ { "point": [ 0, 0, -1 ], "connection": "hidden_lab_basement", "terrain": "basement", "existing": true } ], + "rotate": false, + "locations": [ "potential_basement_lab_entrance" ], + "city_distance": [ 5, -1 ], + "//": "Low chance to find a matching location, so always try to place it", + "occurrences": [ 100, 100 ], + "flags": [ "LAB", "UNIQUE" ] } ] diff --git a/data/json/overmap/special_locations.json b/data/json/overmap/special_locations.json index bb206239b00c1..39efb21801aea 100644 --- a/data/json/overmap/special_locations.json +++ b/data/json/overmap/special_locations.json @@ -119,5 +119,10 @@ "type": "overmap_location", "id": "lake_shore", "terrains": [ "lake_shore" ] + }, + { + "type": "overmap_location", + "id": "potential_basement_lab_entrance", + "terrains": [ "basement" ] } ]