My long range plan for the AI is to move all building code to a new
PLAN_BUILD and consolidate it there. I think this would simplify things
enormously and solve many problems. For several reasons, I don't like the
current solution where cities are assigned offensive or defensive plans
etc. and then try to build accordingly. As for PLAN_IMPROVE, my original
intent was that it would deal with things like terrain improvement and
perhaps also tech development rather than with building.
I don't remember if I ever heard your several reasons, but there isn't a
genericAccordingly, the function should start by checking if facility_worth(u)
already is set to a non-zero number. If it is, we just leave it alone. I
think in general that the game designer can make a much better guess as to
the usefulness of different facilities than any worth function that we
could come up with.
There would be interesting interactions with game design in any case,
since the