
Suggestion: Distance option to prevent new towns to block old towns expansion.
HydrolienF opened this issue ยท 3 comments
Please explain your feature request to the best of your abilities:
I have tried to prevent town blocking (a town bloking an other town expantion) by using min_plot_distance_from_town_plot
and min_distance_from_town_homeblock
.
But it doesn't work fully, because a new town can be created and expand in the old town direction until there is only the value of min_plot_distance_from_town chunks between the 2 towns. In that senario the old town is blocked.
What i would like is that the new town have a higer min plot distance from the old town. That way the old town will always be able to expend x chunk in every direction even if there is town surounding it.
It can be done by adding a new config variable min_plot_distance_from_town_plot_for_newest_town
that will work exactly as min_plot_distance_from_town_plot
but limit only the newest town.
For example :
min_plot_distance_from_town_plot = 10
min_plot_distance_from_town_plot_for_newest_town = 30
min_distance_from_town_homeblock = 30
town 1 is created in chunk 0, 0
town 2 is created in chunk 40, 0
town 2 will be able to expand until 30, 0 (Because it have been created after town 1 and min_plot_distance_from_town_plot_for_newest_town = 30)
Let say that town 2 expand until 30, 0.
town 1 can still expand 20 chunks more, untill 20, 0 (Because it have been created before town 1 and min_plot_distance_from_town_plot = 10)
I hope this is clear enoth. let me know if it's not.
If a maintainer validate that it can be added, I can try to do it and send a pull request.
If you'd like to make a PR you're welcome to. I am currently taking feature requests from sponsors only, as only about 1% of admins are sponsoring my work.