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