Skip to content

Commit

Permalink
Merge pull request CleverRaven#50009 from curstwist/lab_parking_lot
Browse files Browse the repository at this point in the history
Add modular lab parking lot
  • Loading branch information
ZhilkinSerg authored Jul 18, 2021
2 parents 605451f + 319d49c commit cc162a0
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 0 deletions.
199 changes: 199 additions & 0 deletions data/json/mapgen/lab/lab_modular/lab_parking_lot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
[
{
"type": "mapgen",
"method": "json",
"om_terrain": [
[
"lab_surface_parking_blockA0",
"lab_surface_parking_blockB0",
"lab_surface_parking_blockC0",
"lab_surface_parking_blockD0",
"lab_surface_parking_blockE0"
],
[
"lab_surface_parking_blockA1",
"lab_surface_parking_blockB1",
"lab_surface_parking_blockC1",
"lab_surface_parking_blockD1",
"lab_surface_parking_blockE1"
]
],
"object": {
"fill_ter": "t_strconc_floor",
"rows": [
"................................................#!!!!!!!!|________......................................................",
"................................................#________/________......................................................",
"#################################################________/________|:|||#################################################",
"#__,_,____,,____,,_____,,_____,,____,,____,,____/________/________| Cl|]____,,____,,_____,,_____,,____,,____,,____,_,__#",
"#_,__,____,,____,,_____,,_____,,____,,____,,____/________/________}s |]____,,____,,_____,,_____,,____,,____,,____,__,_#",
"#,__,,____,,____,,_____,,_____,,____,,____,,____/________/________|xx |]____,,____,,_____,,_____,,____,,____,,____,,__,#",
"#__,_,____,,____,,_____,,_____,,____,,____,,____/________/________|||m|]____,,____,,_____,,_____,,____,,____,,____,_,__#",
"#_,__,____,,____,,_____,,_____,,____,,____,,_____________|!!!!!!!!|]]]]]____,,____,,_____,,_____,,____,,____,,____,__,_#",
"#,__,,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,,__,#",
"#__,_,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,_,__#",
"#_,__,____________________________________________________________________________________________________________,__,_#",
"#,__,,____________________________________________________________________________________________________________,,__,#",
"#__,_,____________________________________________________________________________________________________________,_,__#",
"#_,__,____________________________________________________________________________________________________________,__,_#",
"#,__,,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,,__,#",
"#__,_,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,_,__#",
"#_,__,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,__,_#",
"#,__,,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,,__,#",
"#__,_,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,_,__#",
"#_,__,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,__,_#",
"#,__,,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,,__,#",
"#__,_,____]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]________________________]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]____,_,__#",
"#_,__,____]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]________________________]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]____,__,_#",
"#,__,,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,,__,#",
"#__,_,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,_,__#",
"#_,__,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,__,_#",
"#,__,,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,,__,#",
"#__,_,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,_,__#",
"#_,__,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,__,_#",
"#,,,,,____,,____,,_____,,_____,,____,,____,,________________________________,,____,,_____,,_____,,____,,____,,____,,,,,#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#______________________________________________________________________________________________________________________#",
"#__________________________________________________]]]]]]]]]]]]]]]]]]__________________________________________________#",
"#_________________________________________________]]]]]]]]]]]]]]]]]]]]_________________________________________________#",
"#________________________________________________]]]]]]]]]]]]]]]]]]]]]]________________________________________________#",
"#______________________________________________]]]]]]]]]]]]]]]]]]]]]]]]]]______________________________________________#",
"#_____________________________________________]]]]]]]]]]]]]]]]]]]]]]]]]]]]_____________________________________________#",
"#____________________________________________]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]____________________________________________#",
"#___________________________________________]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]___________________________________________#",
"#__________________________________________]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]__________________________________________#"
],
"palettes": [ "lab_surface_palette" ],
"terrain": { "#": "t_concrete_wall" },
"place_vehicles": [
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 270, "status": 0, "x": 73, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 20, "rotation": 270, "status": 0, "x": 79, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 270, "status": 0, "x": 86, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 30, "rotation": 270, "status": 0, "x": 92, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 270, "status": 0, "x": 99, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 20, "rotation": 270, "status": 0, "x": 105, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 30, "rotation": 90, "status": 0, "x": 74, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 80, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 20, "rotation": 90, "status": 0, "x": 87, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 93, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 40, "rotation": 90, "status": 0, "x": 100, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 106, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 30, "rotation": 90, "status": 0, "x": 74, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 80, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 20, "rotation": 90, "status": 0, "x": 87, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 93, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 40, "rotation": 90, "status": 0, "x": 100, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 106, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 270, "status": 0, "x": 14, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 20, "rotation": 270, "status": 0, "x": 20, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 270, "status": 0, "x": 28, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 30, "rotation": 270, "status": 0, "x": 34, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 270, "status": 0, "x": 40, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 20, "rotation": 270, "status": 0, "x": 47, "y": 5 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 30, "rotation": 90, "status": 0, "x": 14, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 20, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 20, "rotation": 90, "status": 0, "x": 28, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 34, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 40, "rotation": 90, "status": 0, "x": 40, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 47, "y": 18 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 30, "rotation": 90, "status": 0, "x": 14, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 20, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 20, "rotation": 90, "status": 0, "x": 28, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 34, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": 40, "rotation": 90, "status": 0, "x": 40, "y": 25 },
{ "vehicle": "parkinglotbasic", "chance": 20, "fuel": -1, "rotation": 90, "status": 0, "x": 47, "y": 25 }
]
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "lab_surface_parking_blockE2" ],
"object": {
"fill_ter": "t_strconc_floor",
"rows": [
"_______________________#",
"___________,,__________#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"########################",
"########################",
"########################"
],
"palettes": [ "lab_surface_palette" ],
"terrain": { "#": "t_concrete_wall" },
"place_vehicles": [
{ "vehicle": "semi_truck", "x": 4, "y": 4, "chance": 20, "rotation": 270 },
{ "vehicle": "truck_trailer", "x": 6, "y": 16, "chance": 20, "rotation": 270 },
{ "vehicle": "semi_truck", "x": 15, "y": 4, "chance": 20, "rotation": 270 },
{ "vehicle": "truck_trailer", "x": 17, "y": 16, "chance": 20, "rotation": 270 }
]
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "lab_surface_parking_blockA2" ],
"object": {
"fill_ter": "t_strconc_floor",
"rows": [
"#_______________________",
"#__________,,___________",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"#]_________,,_________]#",
"########################",
"########################",
"########################"
],
"palettes": [ "lab_surface_palette" ],
"terrain": { "#": "t_concrete_wall" },
"place_vehicles": [
{ "vehicle": "semi_truck", "x": 4, "y": 4, "chance": 20, "rotation": 270 },
{ "vehicle": "truck_trailer", "x": 6, "y": 16, "chance": 20, "rotation": 270 },
{ "vehicle": "semi_truck", "x": 15, "y": 4, "chance": 20, "rotation": 270 },
{ "vehicle": "truck_trailer", "x": 17, "y": 16, "chance": 20, "rotation": 270 }
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"type": "overmap_special",
"id": "Lab_Parking_Lot",
"//": "A secure parking lot and concrete wall.",
"overmaps": [
{ "point": [ -2, -2, 0 ], "overmap": "lab_surface_parking_blockE1_west" },
{ "point": [ -3, -2, 0 ], "overmap": "lab_surface_parking_blockE0_west" },
{ "point": [ -2, -1, 0 ], "overmap": "lab_surface_parking_blockD1_west" },
{ "point": [ -3, -1, 0 ], "overmap": "lab_surface_parking_blockD0_west" },
{ "point": [ -1, -2, 0 ], "overmap": "lab_surface_parking_blockE2_west" },
{ "point": [ -1, 2, 0 ], "overmap": "lab_surface_parking_blockA2_west" },
{ "point": [ -2, 0, 0 ], "overmap": "lab_surface_parking_blockC1_west" },
{ "point": [ -3, 0, 0 ], "overmap": "lab_surface_parking_blockC0_west" },
{ "point": [ -2, 1, 0 ], "overmap": "lab_surface_parking_blockB1_west" },
{ "point": [ -3, 1, 0 ], "overmap": "lab_surface_parking_blockB0_west" },
{ "point": [ -2, 2, 0 ], "overmap": "lab_surface_parking_blockA1_west" },
{ "point": [ -3, 2, 0 ], "overmap": "lab_surface_parking_blockA0_west" }
],
"locations": [ "land" ],
"city_distance": [ 3, -1 ],
"city_sizes": [ 1, 16 ],
"occurrences": [ 0, 0 ]
}
]
23 changes: 23 additions & 0 deletions data/json/overmap/overmap_terrain/overmap_terrain_lab.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,29 @@
"see_cost": 5,
"mondensity": 2
},
{
"type": "overmap_terrain",
"id": [
"lab_surface_parking_blockA2",
"lab_surface_parking_blockE2",
"lab_surface_parking_blockA0",
"lab_surface_parking_blockB0",
"lab_surface_parking_blockC0",
"lab_surface_parking_blockD0",
"lab_surface_parking_blockE0",
"lab_surface_parking_blockA1",
"lab_surface_parking_blockB1",
"lab_surface_parking_blockC1",
"lab_surface_parking_blockD1",
"lab_surface_parking_blockE1"
],
"name": "parking lot",
"sym": "_",
"color": "dark_gray",
"spawns": { "group": "GROUP_VANILLA", "population": [ 5, 20 ], "chance": 30 },
"see_cost": 5,
"mondensity": 2
},
{
"type": "overmap_terrain",
"id": [
Expand Down

0 comments on commit cc162a0

Please sign in to comment.