Complete.Org: Mailing Lists: Archives: freeciv-dev: February 1999:
Re: [Freeciv-Dev] [PATCH] new city options: disband, make new citizens s
Home

Re: [Freeciv-Dev] [PATCH] new city options: disband, make new citizens s

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx (Freeciv developers)
Subject: Re: [Freeciv-Dev] [PATCH] new city options: disband, make new citizens scientists/taxmen
From: Reinier Post <rp@xxxxxxxxxx>
Date: Wed, 24 Feb 1999 15:03:56 +0100

> That is, it could be confusing because if you check:
>   Make new citizens workers:     no
>   Make new citizens scientists:  yes
>   Make new citizens taxmen:      yes
> Then you might expect that you'll get both scientists
> and taxmen, but really you only get scientists.
> 
> I'm not sure how best to do this better.

If both are checked, divide according to the rates setting?:

if (science rate > tax rate) {
  return scientist;
} else if (science rate < tax rate) {
  return taxman;
} else {
  return (myrand(1) ? scientist : taxman);
}

-- 
Reinier

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