[Freeciv-Dev] Re: Suggestion
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Mikael Argelius (miar4095@xxxxxxxxxxxxxxx) wrote:
> Maybe if you had road/railroad connecting cities there
> would be less corruption.
Civ:CTP does something like this. The distance from a city to the
capital is calculated taking roads and waterways into account (somehow),
so that building roads decreases your distance-from-capital unhappiness.
A possible implementation could be done using the Goto code. Calculate
the number of turns it would take for a hypothetical unit to travel from
the capital to each of your cities (you'll have to do some fudging if
you go across an ocean) and use that for the distance when calculating
corruption.
--
*** Please note new address. --> | Greg Wooledge
| greg@xxxxxxxxxxxx
"Truth belongs to everybody." | http://wooledge.org/~greg/
Red Hot Chili Peppers | old page: http://www.kellnet.com/wooledge/
pgp0FFidALrY7.pgp
Description: PGP signature
|
|