Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: (PR#2464) patch: restrict techs by nation
Home

[Freeciv-Dev] Re: (PR#2464) patch: restrict techs by nation

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2464) patch: restrict techs by nation
From: "Per I. Mathisen via RT" <rt@xxxxxxxxxxxxxx>
Date: Wed, 4 Dec 2002 12:27:16 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Wed, 4 Dec 2002, Raimar Falke via RT wrote:
> > And we can't copy the nation requirements, because we may have two
> > different sets of nation requirements from our two requirement techs.
>
> So what is the problem?
>
> > For example:
> >
> > [advance_sauronsupernavigation]
> > name   = _("Sauron's Super Navigation")
> > req1   = "Normal Navigation"
> > req2   = "Sauronification"
> > flags  = ""
>
> >nations= "Sauron"
>
> nations= ""

This is the problem.

req1 gives an inheritance of "All", while req2 gives an inheritance of
"Sauron", and neither is automatically correct, so you must say explicitly
what the resulting nation allowances should be.

Your suggestion will only work if both requirements have the same set of
allowed nations or one has an empty set. And then we'd have to introduce
the "All" special word to indicate that we mean all nations and not
inheritance when we give an empty set...

No, I'd rather spell out all the nation restrictions. It is the simplest
way. You are trying to make it too complicated.

  - Per




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