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

Suggestion: Distance option to prevent new towns to block old towns expansion. #7361

Open
HydrolienF opened this issue Apr 14, 2024 · 3 comments

Comments

@HydrolienF
Copy link

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)

@HydrolienF
Copy link
Author

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.

@LlmDl
Copy link
Member

LlmDl commented Apr 14, 2024

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.

@HydrolienF
Copy link
Author

Ok thanks. I will try to do it and send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants