Summary: Control airlift nativity with EFT_AIRLIFT
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Mon 22 Apr 2013 03:10:53 PM JST
                Category: general
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 



    The current code restricts airlifting to UMT_LAND units, which is annoying
for ruleset authors who might want to define a unit that happens to only move
on land but is unsuitable for airlift (e.g. continental assault engine) or
some unit that can move on both land and sea that is suitable for airlift
(e.g. frogmen).  The attached patch removes the hardcoded restriction,
replacing it with ruleset definitions for the "Airlift" effect: units that may
be airlifted are now controlled by the reqs/nreqs of the effects, so ruleset
authors may control this with any of UnitType, UnitFlag, UnitClass, or
UnitClassFlag.  Ruleset adjustments are included for all rulesets in source
control to retain prior behaviour (all using UnitClass for simplicity).


File Attachments:

Date: Mon 22 Apr 2013 03:10:53 PM JST  Name: control-airlift-nativity.patch 
Size: 9kB   By: persia



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to