Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Re: [Freeciv] Caravans?
Home

[Freeciv-Dev] Re: [Freeciv] Caravans?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: lduperval@xxxxxxxxx
Cc: Freeciv Mailing List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [Freeciv] Caravans?
From: Nicolas BRUNEL <brunel@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Jan 2000 05:24:37 +0000 (GMT)

> On 15 Jan, Daniel Zinsli wrote:
> > Is there a limit on the max number of caravans you can send into a city
> > to add to production (wonders)?
> > 
> > After some adding, I was unable to add more caravans.
> I think it's a 3 or 4.

Here is the code : ( unit.c in your_freeciv_dir/common/unit.c )

int unit_can_help_build_wonder(struct unit *punit, struct city *pcity)
{
  return unit_flag(punit->type, F_CARAVAN) &&
    is_tiles_adjacent(punit->x, punit->y, pcity->x, pcity->y) &&
    punit->owner==pcity->owner && !pcity->is_building_unit  &&
    is_wonder(pcity->currently_building) &&   
    (pcity->shield_stock < improvement_value(pcity->currently_building));
}

  You have to use a unit with a flag F_CARAVAN. This unit has to be
adjacent to the city it wants to help. You have to own the city. The
building is the city has to be a wonder. You can't add more shields that
the amount necessary to complete the wonder. I don't recall any other
limitations to help build a wonder in a town with caravans.

Bye,

Nicolas
 


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