Update of patch #4885 (project freeciv):

                  Status:             In Progress => Ready For Test         


Follow-up Comment #5:

And a new pair of patches for this.  These patches are independent of each
other, but are both required to remove AI reliance on is_effect_prevented():
direct uses are replaced with calls the new
dai_can_requirement_be_met_in_city() inside the requirements iterations, which
saves duplicate iterations of the requirements vectors, and contains more
subtle logic to determine whether it would be impossible to achieve for
improvements (techs only look at present circumstances anyway).

Indirect uses (through is_improvement_redundant()) are replaced with extension
and greater use of building_unwanted() for calls from aicity.c, and the
relatively simple check for effects or side_effects in the advisor code.

(file #21559, file #21560)

Additional Item Attachment:

File name: improve-Ai-inspection-of-effects-requirement-vectors.patch Size:12
File name: replace-AI-uses-of-is_improvement_redundant.patch Size:11 KB


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to