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
KB
File name: replace-AI-uses-of-is_improvement_redundant.patch Size:11 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?4885>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to