tlongstretch / freeserf-with-AI-plus

THIS PROJECT WAS MOVED TO 'Forkserf', GO THERE INSTEAD
https://github.com/forkserf/forkserf
GNU General Public License v3.0
1 stars 0 forks source link

AI logic - ideas to minimize road clogging #66

Closed tlongstretch closed 3 years ago

tlongstretch commented 3 years ago

Add some kind of "demolish excess" for all building types once max_XXX reached. Group food items together

Have a buffer for max_XXX resources, so that building placement to gain resources takes place at a slightly lower level than at which excess buildings are demolished, so if there is a fluctuation it doesn't start building as soon as the stored resource count drops slightly. Say a buffer of 10, so max_XXX is actually a lower max of max_XXX - 10 and max_XXX + 10

tlongstretch commented 3 years ago

One big thing I added just now is checking for resources sitting at flags, and including them in the counts used to test against max_XXX resource