Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I'll let you know when these modification have been done.
Honestly i don't know what are the limitations of current API and if you have any reliable way to monitor production/consumption regularly.
so now senselesstowns.createTownAtPlant adds town item to the table every time but has random chance to actually spawn a town in that industry when it attempts to... So the town isn't created but it still counts towards the new limit of 25... okay...
Definitely an improvement though if you go for this kind of setup i'd remove the max and just keep reducing the spawn chance infinitely until it drops to 1 in which case it becomes ultra rare but still possible.
About the changes made: the town creation will start with a chance of 75% and decrease to 25%. I put in a hard limit to prevent the creation of ridiculous number of new villages. I doubt this limit will be reached ever in a normal game, but in modded games...?
A second factor that limits the creation of a new village is the total consumption amount of the industrial plant. The threshold rises every time, so the chance a village will spawn get small every time.
But I'm test-playing it now, to see how it behaves. I keep interest in any feedback of course. Thank for the suggestions.
And yea sorry if i sound a bit wishful. I just really like this feature except a few little details i've been mentioning above. :D
You could even release this as a separate mod i guess...
If I place a resource output industry out in the wilderness between the mountains I don't want to have a town spawned there, but if I place a processing industry between two towns it's okay if there a town is spawned.
I prefer to place them manually.