Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] Re: (PR#6965) civilwar_nations as alternative to misc_citi
Home

[Freeciv-Dev] Re: (PR#6965) civilwar_nations as alternative to misc_citi

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: morgan.jones@xxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6965) civilwar_nations as alternative to misc_cities.ruleset
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 1 Dec 2003 09:32:35 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6965 >

Morgan Jones wrote:

> Now that we have civilwar_nations I thought that this mechanism might be a 
> better way to supplement a nations citylist when it is exhausted.

Yes.  And it should be done recursively.

Something like

   do {
     city_name = find_city_name_for_nation(x, y, nation);
     if (!city_name) {
       nation = pick_random_civilwar_nation(nation);
     }
   } while (nation && !city_name);

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#6965) civilwar_nations as alternative to misc_cities.ruleset, Jason Short <=