Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: residential front lawn nested chunks #4281

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" ] }
}
}
]
Loading