URL:
<http://gna.org/bugs/?13673>
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
Release:
Operating System: None
_______________________________________________________
Details:
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
<http://gna.org/bugs/download.php?file_id=5939>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13673>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev