2TallTyler / improved_town_industries

An industry replacement set for OpenTTD.
GNU General Public License v3.0
22 stars 17 forks source link

Mine clustering needs a safety valve #39

Closed 2TallTyler closed 3 years ago

2TallTyler commented 3 years ago

Simply prohibiting non-clustered industries can produce maps with only a couple coal or iron mines, if the first mine is on an island or town density is low.

Suggested fix (once I get a development computer running again): when a proposed mine is not within a cluster, compare number of mines to number of forests (perhaps minus 10 or /2). If there are an unusually low number of coal mines, allow construction despite the failed cluster check. If things are normal, deny construction as usual.

2TallTyler commented 3 years ago

Closed by https://github.com/2TallTyler/improved_town_industries/commit/c1dc13812bb96d9ba4fdda4fba9226462bcc2888