URL:
  <http://gna.org/bugs/?21991>

                 Summary: aicity::affected_unit_class() assumes reqs can only
match one or all unit classes
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Wed 30 Apr 2014 11:31:47 AM JST
                Category: ai
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

    In practice, it is easy to construct a set of requirements such that
multiple classes match, with any of present==FALSE, UnitClassFlag
restrictions, lack of specification of any aspect of unit class, etc. 

    As a result of this limited understanding, the AI may misestimate the
value of any city improvement that provides EFT_MOVE_BONUS, EFT_HP_REGEN,
EFT_VETERAN_COMBAT, EFT_VETERAN_BUILD, EFT_BRIBE_COST_PERCENT, or
EFT_DEFEND_BONUS if the requirements for those effects are constructed to
match more than one but less than all unit classes.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21991>

_______________________________________________
  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