Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Tech cost patch

[Freeciv-Dev] Tech cost patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Tech cost patch
From: Juha Litola <slave@xxxxxxxxxxxx>
Date: Wed, 28 Nov 2001 13:17:17 +0200

Here is a patch implementing consistent tech costs.

It moves tech cost functionality to tech_cost in common/tech.c.
It introduces new game.ruleset variable tech_cost_style.
0 is old style, each invention increase cost by game.researchcost.
1 means tech costs game.researchcost*(1+numparenttechs) where
  numparenttechs is number requirement technologies counted recursively
  Each technology is only counted once.
2 is same as 1 but it is additionally multiplied by
  (numplayers-civswithtech)/numplayers. This is what civ3 does if
  I have understood correctly.

Gtk-client is also modified to show cost of technology in
science dialog.


// Juha Litola

Attachment: tech_cost_style.diff
Description: Text document

Attachment: pgpSfQdHMdARt.pgp
Description: PGP signature

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