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 - need housekeeping check to identify flags full of resources? #69

Closed tlongstretch closed 3 years ago

tlongstretch commented 3 years ago

Even with removal of excess production buildings, still seen roads become clogged when there is backlog and flags have all slots full. Once flags have all slots full they start shuffling resources to other flags and it compounds the problem. I think there needs to be a check where if any flag has 6+ slots full, stop producing whatever resource is there until things clear up

tlongstretch commented 3 years ago

Yes... I think for each Inventory there shuold be a function to count all the resources that are sitting at flags that are closest to this Inventory building. Add those resources to the Inventory's resource counts for the purpose of counting max_XXX. This should stop producers whose resources aren't yet reaching the Inventory because of clogged roads

tlongstretch commented 3 years ago

dpme