Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2002:
[Freeciv-Dev] Re: new unit flags, 13th version of the patch (PR#1324)
Home

[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]
To: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: new unit flags, 13th version of the patch (PR#1324)
From: Reinier Post <rp@xxxxxxxxxx>
Date: Wed, 21 Aug 2002 13:29:17 +0200

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


[Prev in Thread] Current Thread [Next in Thread]