Advertising

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