Summary: Use unit class match for bodyguard filter
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Wed 09 Apr 2014 06:36:48 AM JST
                Category: ai
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 



    The current bodyguard suitability filter in look_for_charge() verifies
that the potential bodyguard and potential charge have the same move_type(). 
For rulesets with complex nativity, this provides no guarantee that the two
units can move to the same set of tiles, and futher, may break narrative
consistency, since rulesets generally define unit classes based on styles of
movement (e.g. for "Classic", missiles and aircraft don't move in the same
way, even though both happen to be in the air, or for "Alien", amphibious and
antigravity units are UMT_BOTH, but are presumed to move in fairly
incompatible ways).

    The attached patch replaces the move_type filter with a unit_class filter.


File Attachments:

Date: Wed 09 Apr 2014 06:36:48 AM JST  Name: buddy-class-identity.patch  Size:
2kB   By: persia



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to