[Freeciv-Dev] Re: new unit flags, 13th version of the patch (PR#1324)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, Aug 19, 2002 at 04:23:34PM -0700, Per I. Mathisen wrote:
[patch with nice features]
F_UNIQUE means "having a unit of a type with this flag,
a player can never build a second unit of that type".
You check this in can_player_build_unit_direct().
But a player can also get such a unit by
- bribing it
- getting the city that owns it
- getting the city that is building it
- finding it in a hut
You probably need to check this explicitly.
Also, if such a unit takes very long to build and
cannot be moved (sort of an improvement), it is
reasonable to allow the player to start building
a replacement.
BTW with a F_UNIQUE_PER_CITY flag,
improvements can be turned into units ...
--
Reinier
|
|