From 67be0b04a0b10fef8c3909542a8c3adc74338a87 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Fri, 14 Jun 2024 11:48:17 +0200 Subject: [PATCH] Added roof to incomplete campsite building --- data/json/mapgen/campsite.json | 36 +++++++++++++++++++ .../overmap/overmap_special/specials.json | 5 ++- .../overmap_terrain/overmap_terrain.json | 9 +++++ 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/data/json/mapgen/campsite.json b/data/json/mapgen/campsite.json index 773ecb12a3aa9..2a34709b75f1d 100644 --- a/data/json/mapgen/campsite.json +++ b/data/json/mapgen/campsite.json @@ -195,6 +195,42 @@ "place_monsters": [ { "monster": "CAMPERS", "x": [ 0, 23 ], "y": [ 0, 23 ], "chance": 40, "repeat": [ 1, 3 ] } ] } }, + { + "type": "mapgen", + "method": "json", + "om_terrain": [ "campsite_cabin_incomplete_roof" ], + "weight": 500, + "object": { + "predecessor_mapgen": "forest", + "rows": [ + " ", + " ", + " ------ ", + " .....- ", + " ...- ", + " ..- ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " " + ], + "palettes": [ "roof_palette" ] + } + }, { "type": "mapgen", "method": "json", diff --git a/data/json/overmap/overmap_special/specials.json b/data/json/overmap/overmap_special/specials.json index 4ab473e548e91..3f667ae32cd30 100644 --- a/data/json/overmap/overmap_special/specials.json +++ b/data/json/overmap/overmap_special/specials.json @@ -2759,7 +2759,10 @@ { "type": "overmap_special", "id": "campsite_cabin_incomplete", - "overmaps": [ { "point": [ 0, 0, 0 ], "overmap": "campsite_cabin_incomplete_north" } ], + "overmaps": [ + { "point": [ 0, 0, 0 ], "overmap": "campsite_cabin_incomplete_north" }, + { "point": [ 0, 0, 1 ], "overmap": "campsite_cabin_incomplete_roof_north" } + ], "locations": [ "forest_without_trail" ], "connections": [ { "point": [ 0, -1, 0 ], "terrain": "forest_trail", "connection": "forest_trail", "existing": true } ], "city_distance": [ 25, -1 ], diff --git a/data/json/overmap/overmap_terrain/overmap_terrain.json b/data/json/overmap/overmap_terrain/overmap_terrain.json index f886b96ad3b90..086919a1b0efc 100644 --- a/data/json/overmap/overmap_terrain/overmap_terrain.json +++ b/data/json/overmap/overmap_terrain/overmap_terrain.json @@ -598,6 +598,15 @@ "spawns": { "group": "GROUP_FOREST", "population": [ 0, 1 ], "chance": 13 }, "flags": [ "RISK_LOW", "SOURCE_SAFETY" ] }, + { + "type": "overmap_terrain", + "id": "campsite_cabin_incomplete_roof", + "name": "incomplete cabin roof", + "sym": "+", + "color": "light_green", + "see_cost": 5, + "flags": [ "RISK_LOW", "SOURCE_SAFETY" ] + }, { "type": "overmap_terrain", "id": [ "campsite_field_biker", "campsite_field_biker_destroyed" ],