Summary: Use unit class match for bodyguard filter
Submitted by: persia
Submitted on: Wed 09 Apr 2014 06:36:48 AM JST
Priority: 5 - Normal
Assigned to: None
Discussion Lock: Any
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
The attached patch replaces the move_type filter with a unit_class filter.
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