Skip to content

Commit

Permalink
feat: residential front lawn
Browse files Browse the repository at this point in the history
add nested chunks for residential front lawn features
  • Loading branch information
LilShiningMan committed Mar 2, 2024
1 parent fbeb2ba commit 5c5bfa7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/json/mapgen/house/bungalow28.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
{ "vehicle": "suv_electric", "x": 21, "y": 5, "chance": 15, "rotation": 90 },
{ "vehicle": "swivel_chair", "x": 13, "y": 18, "chance": 100, "rotation": 90 },
{ "vehicle": "swivel_chair", "x": 5, "y": 4, "chance": 100, "rotation": 45 }
]
],
"place_nested": [ { "chunks": [ "NC_res_frontlawn_3X3" ], "x": 11, "y": 1 } ]
}
},
{
Expand Down
49 changes: 49 additions & 0 deletions data/json/mapgen/nested/residential_lawn_nested.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[
{
"type": "mapgen",
"method": "json",
"nested_mapgen_id": "NC_res_frontlawn_3X3",
"//": "NEST CONTAINER - house spawns should call this chunk. Global spawn rates can be adjusted, and additional chunks can be added here, which will affect any house spawn that calls this nest container. These are scenes and decorations you might find on a residential front lawn",
"object": {
"mapgensize": [ 3, 3 ],
"rows": [
"___",
"___",
"___"
],
"terrain": { "_": "t_null" },
"place_nested": [ { "chunks": [ [ "null", 5 ], [ "res_frontlawn_bbath", 5 ], [ "res_frontlawn_tree_stump", 5 ] ], "x": 0, "y": 0 } ]
}
},
{
"type": "mapgen",
"method": "json",
"nested_mapgen_id": "res_frontlawn_bbath",
"//": "birdbath with flowers",
"object": {
"mapgensize": [ 3, 3 ],
"rows": [
"!!!",
"!x!",
"!!!"
],
"terrain": { "_": "t_null" },
"furniture": { "x": "f_birdbath", "!": "f_region_flower" }
}
},
{
"type": "mapgen",
"method": "json",
"nested_mapgen_id": "res_frontlawn_tree_stump",
"//": "tree or stump",
"object": {
"mapgensize": [ 3, 3 ],
"rows": [
"___",
"_x_",
"___"
],
"terrain": { "_": "t_null", "x": [ "t_stump", "t_region_tree_fruit", "t_region_tree_nut", "t_region_tree_shade" ] }
}
}
]

0 comments on commit 5c5bfa7

Please sign in to comment.