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
SUMMARY: Mods "Fewer Farms mod, reducing farm density"
Purpose of change
Allow players to reduce the number of farms spawned in the world.
Describe the solution
The current solution is a rather ugly copy-and-paste of large swaths from data/json/overmap/overmap_special/specials.json. I modeled it on how "No Rail Stations" works, but this is a much larger chunk of redundancy I'd prefer to avoid.
Anyway, the only two attributes I'm interested in changing are
city_distance
andoccurrences
, to increase the minimum distance (from 5 up to 10-20), and maximum occurrences (from 5 down to only 1), so for example:No farms were removed, and I left the two
UNIQUE
farms alone.If there is some way to alter these two attributes without copying over the whole overmap layout definition and the rest, I would prefer to do it that way. Very open to suggestions and alternatives at this point (hence the WIP note in the PR).
Describe alternatives you've considered
I considered simply adding all
FARM
flagged terrains to a blacklist, and/or adding a few new flags (such asHORSE
orDAIRY
) to the corespecials.json
, so we could then whitelist some of the more interesting farms. That kind of approach would be cleaner, but I am not really looking to remove any farms completely - just mitigate their proliferation.Testing
A few days ago with an earlier draft of the mod, I did some seat-of-pants testing by spawning 2-3 new worlds with and without the mod. I didn't count the farms, but it definitely felt like there were fewer of them.
Today I tested a little more formally by generating a few different worlds with the mod enabled, debugging a map reveal, and counting the farms in a representative screenshot. RNG makes it kind of hard to gauge without repeated testing (and world generation ain't fast), but my casual results are:
Additional context
Inspired by Vormithrax and his oft-voiced objection to farm spam, with which I can't help but agree.