Summary: [Patch] AI: Evaluate defense buildings based on
enemy unit class
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Friday 06/12/2009 at 04:06
                Category: None
                Severity: 3 - Normal
                Priority: 1 - Later
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None



There is no move type requirement type. Yet AI tries to evaluate buildings
giving defense bonuses based on attacker move type, and not class. This leads
to situations where AI builds, in response to some danger, buildings that do
not actually help against that danger.

With attached patch AI checks that defense building it considers to build
actually works against attacker class. Number of lesser bugs is fixed with
this rewrite (and some new ones added as AI code interfaces are anything but
clean and up to date with other codebase)

Also, this gets rid of one more is_air_unit() call (in assumption that
defense buildings working against land units never work against air units)


File Attachments:

Date: Friday 06/12/2009 at 04:06  Name: DefenseAgainstClass.diff  Size: 7kB  
By: cazfi



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to