[Innawoods] Fixes trails spawning manmade stuff #78777
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.
Summary
Bugfixes "Innawoods - Fixes trails spawning manmade stuff"
Purpose of change
Trails in Innawoods were spawning things like map boards, signs, benches, ect. As indicated by the Innawoods readme.md, having man-made objects present is not within the design goals of the mod.
Here are the precise issues addressed:
Describe the solution
For the parts of the forest trails that were spawning map boards and signs, I simply overwrote the vanilla game's trail palette and removed any nest spawns for man-made objects, using null instead.
The problem with trail intersections required using the solution that aftershock: exoplanet and desert region used to control roads, bridges and lakes spawning:
Describe alternatives you've considered
Assigning the global variable to all the individual segments of vanilla trails. I didn't do this because then I would be required to include replacement mapgen for all of those affected trails. I decided that this would be unnecessary, so I kept the weight global variables specific to the parts of trails that were causing issues.
Testing
INNAWOODS:
The intersections (the big round dirt patches) are no longer spawning furniture, and the other trail segments aren't spawning signs/ect.
VANILLA:
The base game is unaffected. Intersections retain the potential to spawn man-made furniture and other trail segments are correctly spawning their signs and map boards.
Additional context