feat: residential roof solar nested chunks #4277
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of change
Adding nested chunks for residential roof solar panels to spawn.
Describe the solution
Created Nest Container entry that each individual house file should call. The values in nest container itself are what should determine % of houses that spawn with solar panels. This means that if any future changes are made to solar panel spawn rates, there is no need to update each individual house file that calls this nest container -- instead, tweaking the values of nest container in the nested chunks folder will make the necessary changes for all.
Describe alternatives you've considered
Add nested chunks (different sizes and null entries) to each individual house file, but that can make it a pain to update or add new chunk variants. This is much easier.
Testing
files linted and houses spawned in game. 2 diff varieties of residential solar chunks (3x3 and 4x4) successfully spawn.
Additional context
EDIT : Oops, thanks for the title fix. Forgot the "feat" in front
I also changed the name of the file "nest_chunk_roof" to "roof_nested" to fit the rest of the naming conventions in the nested folder.
Checklist