Skip to content

Commit

Permalink
Add rural church location (#72577)
Browse files Browse the repository at this point in the history
* Add rural church map special

Added the location, made sure it spawns in world.

* Fix misplaced comma, re-lint
  • Loading branch information
Kanexan authored Mar 24, 2024
1 parent cf9267f commit af05db6
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 0 deletions.
160 changes: 160 additions & 0 deletions data/json/mapgen/church_rural.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
[
{
"type": "mapgen",
"method": "json",
"om_terrain": [ [ "rural_church_parking", "rural_church" ] ],
"//": "This is a rural church, with a basement and a gravel parking lot",
"object": {
"fill_ter": "t_floor",
"rows": [
" ",
" ^^^^^^^^^^^^^^^^ ",
" ^WWwWVBWWGVWwWW^ ",
" gg ^^^^^wyh.....####yw^ ",
" g gg _gg ````WWwwWW.p..........W^ ",
" g__gggg g_gg_````+,,,,+.......####.W^ ",
" gg __g_ ggg__g````+,,,,+............W^ ",
"______gg gg __ ````W<oo>W.####..####.W^ ",
" gg_g gg gggg ssssWWwwWW............w^ ",
" gg _g_g _ggg_ggg_____s^^^^^W.####..####.W^ ",
"_____ g_ gggggggggg_g s^ ^W............W^ ",
" gggg gg ggggg__gggg s^ ^W.####..####.W^ ",
"gggggg_g ggggg___gg____s^ ^w............w^ ",
"g______g__gg ggggggg gs^ ^W.####..####.W^ ",
" ggg_ gggggg_ggggggs^ ^W............W^ ",
"ggg _g ggg_gggg______s^ ^W.####..####.W^ ",
"_____g__ gg ggggggggggs^ ^W.....tt.....W^ ",
" ggggg gggggggg_gggg s^ ^B...b.,,.b...G^ ",
" ggg _ ggg__gg___ _s^ ^Wy.....h.t..yW^ ",
" gg__ ggggggggggg s^ ^WW++||||||WWWW^ ",
" g___g gggggggg_gg s^ ^^w..-...hdw^^^^ ",
" _g___ggg gg____s^ ^W>.|lo..dW^ ",
" gggggggggggggs^^^^^^Ww-WWwWWwW^ ",
" gg____g g ssssssssss "
],
"palettes": [ "church" ],
"terrain": {
"W": "t_wood_wall_w",
"B": "t_window_stained_blue",
"G": "t_window_stained_green",
"V": "t_window_stained_red",
",": "t_carpet_red",
"`": "t_concrete",
"_": "t_region_soil",
"g": "t_railroad_rubble",
"<": "t_stairs_up",
">": "t_stairs_down"
},
"items": { "o": { "item": "religious_books", "chance": 60 } }
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ [ "rural_church_steeple" ] ],
"object": {
"fill_ter": "t_floor",
"rows": [
" ",
" ",
" |||||||||||||| ",
" |||||||||||||| ",
"||||||||||||||||||| ",
"WWwwWW||||||||||||| ",
"w...6W||||||||||||| ",
"w>...W||||||||||||| ",
"WWwwWW||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||||||| ",
" |||||||||| ",
" |||||||||| ",
" |||||||||| ",
" "
],
"palettes": [ "roof_palette" ],
"terrain": { "|": "t_shingle_flat_roof", "W": "t_wood_wall_w", "w": "t_window", " ": "t_open_air", ".": "t_floor" },
"computers": { "6": { "name": "Church Bells 1.0", "options": [ { "name": "Toll Bells", "action": "toll" } ] } }
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ [ "rural_church_steeple_roof" ] ],
"object": {
"fill_ter": "t_shingle_flat_roof",
"rows": [
" ",
" ",
" ",
" ",
" ",
"|||||| ",
"|||||| ",
"|||||| ",
"|||||| ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
],
"palettes": [ "roof_palette" ],
"terrain": { "|": "t_shingle_flat_roof", " ": "t_open_air" }
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ [ "rural_church_basement" ] ],
"object": {
"fill_ter": "t_linoleum_gray",
"rows": [
"########################",
"########################",
"#####||||||||||||||#####",
"#####|UUU xT x T|#####",
"|||||| xS x S|#####",
"|a + xx+x+x|#####",
"| <| l|#####",
"||||||xx++xxxxxxxx|#####",
"#####|a hh hh |#####",
"#####| tt tt |#####",
"#####|h tt tt |#####",
"#####|h hh hh |#####",
"#####|h |#####",
"#####|h hh hh |#####",
"#####|h tt tt |#####",
"#####|h tt tt |#####",
"#####|h hh hh |#####",
"#####| |#####",
"#####|a 11|#####",
"#####|| xCCCCx+||||#####",
"######| + |########",
"######|<xe234vW|########",
"######||||||||||########",
"########################"
],
"palettes": [ "cathedral" ],
"terrain": { "#": "t_soil", " ": "t_linoleum_gray" }
}
}
]
16 changes: 16 additions & 0 deletions data/json/overmap/overmap_special/specials.json
Original file line number Diff line number Diff line change
Expand Up @@ -3487,6 +3487,22 @@
"occurrences": [ 0, 3 ],
"flags": [ "CLASSIC", "MAN_MADE" ]
},
{
"type": "overmap_special",
"id": "church_rural",
"overmaps": [
{ "point": [ 1, 0, 0 ], "overmap": "rural_church_parking_north" },
{ "point": [ 2, 0, 0 ], "overmap": "rural_church_north" },
{ "point": [ 2, 0, -1 ], "overmap": "rural_church_basement_north" },
{ "point": [ 2, 0, 1 ], "overmap": "rural_church_steeple_north" },
{ "point": [ 2, 0, 2 ], "overmap": "rural_church_steeple_roof_north" }
],
"connections": [ { "point": [ 0, 0, 0 ], "terrain": "road", "connection": "local_road", "from": [ 1, 0, 0 ] } ],
"locations": [ "forest", "field" ],
"city_distance": [ 5, 50 ],
"occurrences": [ 0, 3 ],
"flags": [ "CLASSIC", "MAN_MADE" ]
},
{
"type": "overmap_special",
"id": "Moonshine Still",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,37 @@
"extras": "none",
"color": "light_red"
},
{
"type": "overmap_terrain",
"id": [ "rural_church", "rural_church_parking" ],
"name": "rural church",
"sym": "C",
"color": "light_red",
"see_cost": 4
},
{
"type": "overmap_terrain",
"id": [ "rural_church_steeple" ],
"name": "rural church steeple",
"sym": "C",
"color": "light_red",
"see_cost": 4
},
{
"type": "overmap_terrain",
"id": [ "rural_church_steeple_roof" ],
"name": "rural church steeple roof",
"sym": "C",
"color": "light_red",
"see_cost": 4
},
{
"type": "overmap_terrain",
"id": [ "rural_church_basement" ],
"name": "church basement",
"sym": "B",
"color": "light_red"
},
{
"type": "overmap_terrain",
"id": [ "synagogue" ],
Expand Down

0 comments on commit af05db6

Please sign in to comment.